SpacePolygonTriangulation Class
Class with static methods to triangulate various forms of possibly non-planar polygons.
Methods
Name | Description | |
---|---|---|
constructor(): SpacePolygonTriangulation | ||
spaceQuadDiagonalAspectRatio(point0: Point3d, point1: Point3d, point2: Point3d, point3: Point3d): number Static | * Treat a space quad as two triangles with interior diagonal from point0 to point2 | |
spaceTriangleAspectRatio(point0: Point3d, point1: Point3d, point2: Point3d): number Static | * Return a number which is: | |
triangulateGreedyEarCut(points: Point3d[], announceLoopAndTriangles: AnnounceLoopAndTrianglesFunction): boolean Static | "Triangulate" by cutting of the ear with best aspect ratio. | |
triangulateSimplestSpaceLoop(loop: Point3d[] | LineString3d, announceLoopAndTriangles: AnnounceLoopAndTrianglesFunction, maxPerimeter?: number): boolean Static | * Emit triangles for a (possibly non-planar) loop for various simple cases: |
Defined in
- topology/SpaceTriangulation.ts Line 22
Last Updated: 20 June, 2023