PolylineOps Class
PolylineOps is a collection of static methods operating on polylines.
Methods
Name | Description | |
---|---|---|
constructor(): PolylineOps | ||
addClosurePoint(data: Point3d[] | Point3d[][]): void Static | Add closure points to a polyline or array of polylines | |
compressByChordError(source: Point3d[], chordTolerance: number): Point3d[] Static | Return a simplified subset of given points. | |
compressByPerpendicularDistance(source: Point3d[], maxDistance: number, numPass: number = 2): Point3d[] Static | Return a simplified subset of given points, omitting points if close to the edge between neighboring points before and after | |
compressDanglers(source: Point3d[], closed: boolean = false, tolerance: number = Geometry.smallMetricDistance): Point3d[] Static | Return a simplified subset of given points, omitting points on "danglers" that depart and return on a single path. | |
compressShortEdges(source: Point3d[], maxEdgeLength: number): Point3d[] Static | Return a simplified subset of given points, omitting points if very close to their neighbors. | |
compressSmallTriangles(source: Point3d[], maxTriangleArea: number): Point3d[] Static | Return a simplified subset of given points, omitting points of the triangle with adjacent points is small. | |
edgeLengthRange(points: Point3d[]): Range1d Static | Return a Range1d with the shortest and longest edge lengths of the polyline. | |
removeClosurePoint(data: Point3d[] | Point3d[][]): void Static | Remove closure points a polyline or array of polylines |
Defined in
- geometry3d/PolylineOps.ts Line 20
Last Updated: 30 November, 2023