Follow

A really neat thing about is that it can be super fast for prototyping algorithms.

Fortune's Voronoi algorithm only returns a list of edges. These need to be assembled into actual polygons as a post processing step

The assemblage can easily be O(n^2), but I found a neat O(nlogn) algorithm.
Jiang & Bunke's "An optimal algorithm for extracting the regions of a plane graph" (Pattern Recognition Letters 14, July 1993)

Got an R version working in no time!

github.com/coolbutuseless/rvor

· · 1 · 11 · 23