Intermact API Reference / @intermact/core / polygonBoolean
Function: polygonBoolean()
polygonBoolean(
subjectRing,clipRing,op):AbsXY[][]
Defined in: packages/core/src/geometry/boolean.ts:109
Compute a boolean operation between two simple polygons. Returns zero or more result contours (point rings). Falls back to containment/disjoint handling when the polygons do not cross.
Parameters
subjectRing
readonly AbsXY[]
clipRing
readonly AbsXY[]
op
Returns
AbsXY[][]