compressByChordError MethodStatic
Return a simplified subset of given points.
- Points are removed by the Douglas-Puecker algorithm, viz https://en.wikipedia.org/wiki/Ramer–Douglas–Peucker_algorithm
- This is a global search, with multiple passes over the data.
compressByChordError(source: Point3d[], chordTolerance: number = Geometry.smallMetricDistance, keepSeam: boolean = false): Point3d[]
| Parameter | Type | Description |
|---|---|---|
| source | Point3d[] | input points. |
| chordTolerance | number | Points less than this distance from a retained edge may be ignored. Default is smallMetricDistance. |
| keepSeam | boolean | whether to preserve the endpoints of physically closed input. Default is false, meaning physically closed input points are treated cyclically, allowing removal of the seam. |
Returns - Point3d[]
Defined in
- geometry3d/PolylineOps.ts Line 50
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.