compressShortEdges MethodStatic

Return a simplified subset of given points, omitting a point if very close to its predecessor.

  • This is a local search, with a single pass over the data.
  • First and last points are always retained.

compressShortEdges(source: IndexedXYZCollection | Point3d[], maxEdgeLength: number): Point3d[]

@see cloneCompressed

Parameter Type Description
source IndexedXYZCollection | Point3d[] input points
maxEdgeLength number length of largest edge to be compressed out

Returns - Point3d[]

Defined in

Last Updated: 07 June, 2025