Skip to main content

Module voronoi

Module voronoi 

Source
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§

VoronoiDiagram
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 sites within 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. Returns None when the sites cannot be triangulated (fewer than three distinct points, or all collinear).