Generating Voronoi diagrams using Fortune's algorithm
redpenguin101.github.io
Generating Voronoi diagrams using Fortune's algorithm
1–10 of 23 posts
Re: Generating Voronoi diagrams using Fortune's algorithm
#2https://github.com/gorhill/Javascript-Voronoi
I toyed with it here to have it move:
Re: Generating Voronoi diagrams using Fortune's algorithm
#3It’s a very beautiful algorithm.
However, after that project I sort of came to dislike Fortune’s algorithm because it isn’t numerically stable with floating point numbers. If you have points that are colinear, or nearly colinear in fp, things can break. The delaunator is better in this regard iirc: https://github.com/mapbox/delaunator
Re: Generating Voronoi diagrams using Fortune's algorithm
#4Re: Generating Voronoi diagrams using Fortune's algorithm
#5https://github.com/d3/d3-delaunay
at the bottom of that page is a discussion of the sweep algorithm used and a list of other (non-javascript) language implentations.
The original d3-voronoi is deprecated but can be found here:
Re: Generating Voronoi diagrams using Fortune's algorithm
#6"is 5-10× faster than d3-voronoi to construct the Delaunay triangulation or the Voronoi diagram, is more robust numerically, has Canvas rendering built-in, allows traversal of the Delaunay graph, and a variety of other improvements."
Re: Generating Voronoi diagrams using Fortune's algorithm
#7Re: Generating Voronoi diagrams using Fortune's algorithm
#8Re: Generating Voronoi diagrams using Fortune's algorithm
#9There is an implementation of that algorithm in JS by Raymond Hill (of uBlock Origin fame): https://github.com/gorhill/Javascript-Voronoi I toyed with it here to have it move: https://animations.adgent.com/voronoi.html
I wonder if it's possible to use video as an input to an algorithm that displays using Voronoi? Probably at that point it wouldn't be a Voronoi diagram, but it might look cool :)