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: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.