GeometrySingleton.mergePolygons2d

Merges (combines) polygon_a and polygon_b and returns an array of merged polygons. This performs constant OPERATION_UNION between polygons. The operation may result in an outer polygon (boundary) and multiple inner polygons (holes) produced which could be distinguished by calling isPolygonClockwise.

struct GeometrySingleton
@nogc nothrow
Array
mergePolygons2d
(
in PoolVector2Array polygon_a
,
in PoolVector2Array polygon_b
)

Meta