addPoint Method
add (a clone of ) a point. return its 0 based index.
addPoint(point: Point3d, priorIndex?: number): number
Parameter | Type | Description |
---|---|---|
point | Point3d | point coordinates |
priorIndex | number | optional index of prior point to check for repeated coordinates |
Returns - number
Returns the zero-based index of the added or reused point.
Defined in
- polyface/Polyface.ts Line 310
Last Updated: 30 November, 2023