splitConvexPolygonInsideOutsidePlane MethodStatic
Split a (convex) polygon into 2 parts based on altitude evaluations.
- Both output arrays are cleared first.
- This method uses only a fixed (tight) parametric tolerance for on-plane detection. See clipConvexPolygonInPlace for a method that takes an additional distance tolerance.
splitConvexPolygonInsideOutsidePlane(plane: PlaneAltitudeEvaluator, xyz: IndexedXYZCollection, xyzPositive: IndexedReadWriteXYZCollection, xyzNegative: IndexedReadWriteXYZCollection, altitudeRange: Range1d): void
| Parameter | Type | Description |
|---|---|---|
| plane | PlaneAltitudeEvaluator | any PlaneAltitudeEvaluator object that can evaluate plane.altitude(xyz) for distance from the plane. |
| xyz | IndexedXYZCollection | original polygon |
| xyzPositive | IndexedReadWriteXYZCollection | array to receive inside part (altitude > 0) |
| xyzNegative | IndexedReadWriteXYZCollection | array to receive outside part |
| altitudeRange | Range1d | min and max altitudes encountered. |
Returns - void
Defined in
- geometry3d/PolygonOps.ts Line 1532
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.