API Reference > geometry-core > CartesianGeometry > PolylineOps > compressByChordError 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): Point3d[] Parameter Type Description source Point3d[] chordTolerance number Returns - Point3d[] Defined in core/geometry/src/geometry3d/PolylineOps.ts Line 37 Last Updated: 13 June, 2024