appendPolygonClip Method
Implement appendPolygonClip, as defined in interface PolygonClipper.
- This method differs from polygonClip by clipping the outside fragments resulting from the previous ConvexClipPlaneSet with the following one, and returning both inside and outside pieces. In this way, it always produces disjoint inside fragments, even if the clippers are not disjoint (uncommon).
appendPolygonClip(xyz: IndexedXYZCollection, insideFragments: GrowableXYZArray[], outsideFragments: GrowableXYZArray[], arrayCache: GrowableXYZArrayCache): void
@see polygonClip
Parameter | Type | Description |
---|---|---|
xyz | IndexedXYZCollection | convex polygon. This is not changed. |
insideFragments | GrowableXYZArray[] | Array to receive "inside" fragments. Each fragment is a GrowableXYZArray grabbed from the cache. This is NOT cleared. |
outsideFragments | GrowableXYZArray[] | Array to receive "outside" fragments. Each fragment is a GrowableXYZArray grabbed from the cache. This is NOT cleared. |
arrayCache | GrowableXYZArrayCache | cache for reusable GrowableXYZArray. |
Returns - void
Defined in
Last Updated: 07 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.