compressDanglers MethodStatic
Return a simplified subset of given points, omitting points on "danglers" that depart and return on a single path.
compressDanglers(source: Point3d[], closed: boolean = false, tolerance: number = Geometry.smallMetricDistance): Point3d[]
| Parameter | Type | Description |
|---|---|---|
| source | Point3d[] | input points |
| closed | boolean | if true, an edge returning to point 0 is implied even if final point does not match. |
| tolerance | number | tolerance for near-zero distance. |
Returns - Point3d[]
Defined in
- geometry3d/PolylineOps.ts Line 152
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.