Skip to content

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 ​

BooleanOp

Returns ​

AbsXY[][]

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)