Skip to main content

Module delaunay_triangulation

Module delaunay_triangulation 

Source
Expand description

Delaunay triangulation of 2D point sets.

See the book entry Delaunay triangulations and Voronoi diagrams.

Structs§

Triangulation
A Delaunay triangulation: triangles (indices into the input points, counter-clockwise) such that no input point lies inside any triangle’s circumcircle. Together the triangles tile the convex hull of the points.

Functions§

delaunay_triangulation
Triangulates points by a sweep with Lawson flips (O(n log n) typical): points are inserted in lexicographic order, so each lies outside the triangulation so far and is joined to the hull edges it can see; every new edge is then checked against the empty-circle test and flipped until the triangulation is Delaunay again.