Optionalpoints: Point3[]Optionaltolerance: numberOptionalcheckFirstAndLast: booleanThe points to filter; their order is kept.
OptionaltoleranceTwo points count as the same when every coordinate differs by less than this.
When true, a last point that repeats the first is dropped as well, which closes a loop cleanly.
Points to filter with
point.removeConsecutiveDuplicates, and how close two points must be to count as the same.