createBisectorPlanesForDistinctPoints MethodStatic
Create an array of planes.
- First plane has origin at first centerline point, with unit normal directed at the next point.
- Intermediate planes have origin at intermediate points, with unit normals computed from the average of unit vectors along the incoming and outgoing segments.
- Last plane has origin at last centerline point, with unit normal directed from previous point.
- All sets of adjacent coincident points are reduced to a single point.
- Hence the output array may have fewer points than the centerline.
- If there are one or fewer distinct input points, the return is undefined
createBisectorPlanesForDistinctPoints(centerline: IndexedXYZCollection | Point3d[], wrapIfPhysicallyClosed: booleanfalse): undefined | Plane3dByOriginAndUnitNormal[]
Parameter | Type | Description |
---|---|---|
centerline | IndexedXYZCollection | Point3d[] | points to reside in output planes |
wrapIfPhysicallyClosed | boolean | if true and the first and last centerline points are the same, then the first and last output planes are averaged and equated (cloned). |
Returns - undefined | Plane3dByOriginAndUnitNormal[]
Defined in
- geometry3d/PolylineOps.ts Line 231
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.