Expand description
Voronoi diagrams of 2D point sets, as the dual of the Delaunay triangulation.
See the book entry Delaunay triangulations and Voronoi diagrams.
Structs§
- Voronoi
Diagram - A Voronoi diagram clipped to a bounding box: the cell of each site is the convex polygon of box points closer to that site than to any other.
Functions§
- polygon_
signed_ area - The area of a simple polygon (positive for counter-clockwise order).
- voronoi_
diagram - The Voronoi diagram of
siteswithin the box[lo, hi]. Each cell is the box clipped by the perpendicular bisectors to the site’s Delaunay neighbours, which are exactly the sites whose cells it shares an edge with. ReturnsNonewhen the sites cannot be triangulated (fewer than three distinct points, or all collinear).