Class SweepLinePolygonTriangulator
- Namespace
- HelixToolkit.Geometry
- Assembly
- HelixToolkit.Geometry.dll
Triangulate a simple Polygon with the Sweep-Line Algorithm
public static class SweepLinePolygonTriangulator
- Inheritance
-
SweepLinePolygonTriangulator
- Inherited Members
Remarks
Based on http://www.cs.uu.nl/docs/vakken/ga/slides3.pdf References https://www.cs.ucsb.edu/~suri/cs235/Triangulation.pdf
Fields
Epsilon
Range Extension when searching for the Helper and Edge
public static float Epsilon
Field Value
Methods
Triangulate(IList<Vector2>, List<List<Vector2>>?)
Perform the Triangulation of the Input.
public static List<int>? Triangulate(IList<Vector2> polygon, List<List<Vector2>>? holes = null)