clipInsidePushOutside Method

Clip a convex polygon to (a single) inside part and (possibly many) outside parts.

clipInsidePushOutside(xyz: GrowableXYZArray, outsideFragments: GrowableXYZArray[], arrayCache: ): GrowableXYZArray | undefined

Parameter Type Description
xyz GrowableXYZArray input polygon.
outsideFragments GrowableXYZArray[] an array to receive (via push, with no preliminary clear) outside fragments
arrayCache cache for work arrays.

Returns - GrowableXYZArray | undefined

the surviving inside part (if any)

Defined in

Last Updated: 13 June, 2024