Declaration
public static List<TriangleD> DelaunayTriangles(
IEnumerable<PolygonD> polygons,
bool reverseOrder = false
)Summary
Generates a Delaunay triangulation of the specified polygons. The triangles cover the inside area defined by the
polygons, supporting arbitrary nesting of islands and holes, but not supporting self-intersections. Additional
vertices may be inserted only on the polygon edge, to maintain the Delaunay property.
Parameters
| IEnumerable<PolygonD> | polygons |
Polygons to triangulate. |
| bool | reverseOrder |
When false, triangle vertices are ordered by increasing angle, otherwise by decreasing angle. |
Returns
A list of triangles.