Dungeon Architect
17.0.0
|
Performs the Delauney triangulation on a set of vertices. More...
Static Public Member Functions | |
static List< Geometry.Triangle > | Triangulate (List< Triangulator.Geometry.Point > Vertex) |
Performs Delauney triangulation on a set of points. More... | |
Performs the Delauney triangulation on a set of vertices.
Based on Paul Bourke's "An Algorithm for Interpolating Irregularly-Spaced Data with Applications in Terrain Modelling" http://astronomy.swin.edu.au/~pbourke/modelling/triangulate/
Definition at line 19 of file Delauney.cs.
|
static |
Performs Delauney triangulation on a set of points.
The triangulation doesn't support multiple points with the same planar location. Vertex-lists with duplicate points may result in strange triangulation with intersecting edges. To avoid adding multiple points to your vertex-list you can use the following anonymous predicate method:
The triangulation algorithm may be described in pseudo-code as follows:
Vertex | List of vertices to triangulate. |
Definition at line 66 of file Delauney.cs.