mdally / Voronoi

C++ implementation of Fortune's Algorithm for computing bounded Voronoi diagrams
MIT License
25 stars 14 forks source link

Voronoi

by Mark Dally

https://github.com/mdally/Voronoi


A C++ library for computing bounded Voronoi diagrams using Fortune's algorithm and performing Lloyd's relaxation.

Compile using either the Visual Studio project or the makefile. Once compiled, all you need are the library file and the headers in the 'include' folder.

Usage:

//compute the diagram for a set of sites and a bounding box

VoronoiDiagramGenerator::compute(std::vector<Point2>& sites, BoundingBox bbox)

//perform Lloyd's relaxation on the diagram last computed

VoronoiDiagramGenerator::relax()

Notes: