compressSmallTriangles MethodStatic
Return a simplified subset of given points, omitting the middle of three successive points if the triangle they form is small.
- This is a local search, with a single pass over the data.
compressSmallTriangles(source: Point3d[], maxTriangleArea: number): Point3d[]
Parameter | Type | Description |
---|---|---|
source | Point3d[] | input points |
maxTriangleArea | number | area of largest triangle to compress |
Returns - Point3d[]
Defined in
- geometry3d/PolylineOps.ts Line 68
Last Updated: 07 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.