findOrderedDuplicates Method
For each subset of k successive points within tolerance of the first point in the subset, return the indices of
the last k-1 duplicates.
- Index
0is never returned.
findOrderedDuplicates(tolerance: number = Geometry.smallMetricDistance, preserveLast: boolean = false): number[]
@returns ordered array of 0-based indices of duplicate points
| Parameter | Type | Description |
|---|---|---|
| tolerance | number | optional distance tol for compression (default smallMetricDistance). |
| preserveLast | boolean | if the last k < this.length points of the instance are duplicates, whether to return theindices of the first k-1 duplicates for this last run. If true, index this.length - 1 is not returned.unless all points are duplicates, in which case all indices but 0 are returned. Default value is false. |
Returns - number[]
ordered array of 0-based indices of duplicate points
Defined in
- geometry3d/IndexedXYZCollection.ts Line 242
Last Updated: 29 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.