Path: blob/main/notebooks/drafts/voronoi_diagram_out.ipynb
51 views
Voronoi Diagrams: Computational Geometry and Spatial Partitioning
Introduction
A Voronoi diagram (also known as a Voronoi tessellation, Dirichlet tessellation, or Thiessen polygons) is a fundamental structure in computational geometry that partitions a plane into regions based on distance to a specified set of points called sites or generators.
Mathematical Definition
Given a set of points in a metric space (typically ), the Voronoi cell (or Voronoi region) corresponding to site is defined as:
where denotes the Euclidean distance:
Geometric Properties
Perpendicular Bisectors
The boundary between two adjacent Voronoi cells and lies on the perpendicular bisector of the line segment . This bisector is defined by:
Half-Plane Representation
Each Voronoi cell can be expressed as the intersection of half-planes:
where is the half-plane containing all points closer to than to .
Euler's Formula
For a Voronoi diagram with sites in general position (no four cocircular points), the number of vertices , edges , and faces satisfy:
With faces, we have:
Vertices:
Edges:
Delaunay Triangulation Duality
The Voronoi diagram is the dual graph of the Delaunay triangulation. Specifically:
Each Voronoi vertex corresponds to a Delaunay triangle
Each Voronoi edge corresponds to a Delaunay edge
Each Voronoi cell corresponds to a Delaunay vertex
The circumcenter of each Delaunay triangle is a Voronoi vertex, satisfying the empty circumcircle property: no site lies inside the circumcircle of any Delaunay triangle.
Applications
Voronoi diagrams have extensive applications across multiple disciplines:
Computational Biology: Protein structure analysis, cell territory modeling
Geographic Information Systems: Service area determination, spatial interpolation
Computer Graphics: Mesh generation, texture synthesis
Robotics: Path planning, sensor placement
Materials Science: Crystal grain boundary modeling
Summary
This notebook demonstrated the construction and visualization of Voronoi diagrams, a fundamental data structure in computational geometry. Key concepts covered:
Mathematical Foundation: Voronoi cells partition space based on proximity to generator sites
Geometric Properties: Cells are convex polygons bounded by perpendicular bisectors
Duality: Voronoi diagrams are dual to Delaunay triangulations
Complexity: For sites, vertices and edges
Applications: Spatial queries, mesh generation, nearest neighbor search
The computational complexity of constructing a Voronoi diagram using Fortune's algorithm is , making it efficient for large point sets.