cgal_union - ObjectVision/GeoDMS GitHub Wiki
Geometric functions > cgal_union
- cgal_union(polygon_data_item1, polygon_data_item2)
cgal_union(polygon_data_item1, polygon_data_item2) results in a data item with the union of the two polygon arguments. The result contains, for each element, the combined area covered by either polygon argument.
The operator is applied element-by-element. Both domains need to match, or one of the arguments needs to be a parameter (void domain).
The cgal_ prefix of the function name indicates that the implementation of the operator uses CGAL, which provides exact predicates and exact constructions for maximum numerical precision.
- attribute polygon_data_item1 with a polygon value type
- attribute polygon_data_item2 with a polygon value type
The value types of both arguments must be compatible (same point type).
- The composition type of both arguments needs to be polygon.
- The domains of the two arguments must match, or one argument must have a void domain (parameter).
14.0
attribute<dpoint> geometry_union (district) := cgal_union(district/geometry, municipality/geometry);