gen_parallels_xld — Extract parallel XLD polygons.
gen_parallels_xld examines the XLD polygons passed in Polygons for parallelism. The resulting parallel polygons are returned in Parallels. If the parameter Merge is set to 'true', adjacent parallel polygons are returned in a single parallel relation. Otherwise, one parallel relation is returned for each pair of parallel line segments.
Only polygon segments longer than Len are taken into account. Whether two polygon segments are parallel depends on a maximum allowed angle difference Alpha (in radians). Furthermore, the projections of the two segments onto their angle bisector have to overlap. Finally, the overlap on the angle bisector is reprojected onto the two segments. If the maximal distance of the reprojections is smaller than Dist, the segments are stored in Parallels.
As a side effect, a quality factor is calculated for each pair of parallels, compare mod_parallels_xld. It is based on the normalized angular difference and the normalized length of the overlap:
Minimum length of the individual polygon segments.
Default value: 10.0
Suggested values: 5.0, 10.0, 15.0, 20.0
Restriction: Len > 0.0
Maximum distance between the polygon segments.
Default value: 30.0
Suggested values: 20.0, 25.0, 30.0, 40.0, 50.0, 75.0
Restriction: Dist > 0.0
Maximum angle difference of the polygon segments.
Default value: 0.15
Suggested values: 0.05, 0.10, 0.15, 0.20, 0.30
Restriction: 0 <= Alpha && Alpha <= pi / 2
Should adjacent parallel relations be merged?
Default value: 'true'
List of values: 'false', 'true'
mod_parallels_xld, get_parallels_xld, info_parallels_xld