Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: List<TriangleD> DelaunayTriangles(IEnumerable<PolygonD>, bool)

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.
boolreverseOrder When false, triangle vertices are ordered by increasing angle, otherwise by decreasing angle.

Returns

A list of triangles.