A few years back I made this 3d visualisation https://x.com/KangarooPhysics/status/1253336959755251716
Generating Voronoi diagrams using Fortune's algorithm
11–20 of 23 posts
Re: Generating Voronoi diagrams using Fortune's algorithm
#12Re: Generating Voronoi diagrams using Fortune's algorithm
#13Re: Generating Voronoi diagrams using Fortune's algorithm
#14I just did this with Common Lisp!
Re: Generating Voronoi diagrams using Fortune's algorithm
#15Re: Generating Voronoi diagrams using Fortune's algorithm
#16There 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
Your animation reminded me of the style used in A Scanner Darkly (2006) 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 :)
Re: Generating Voronoi diagrams using Fortune's algorithm
#17I made an implementation in clojurescript that animates the algorithm as it goes a while back: https://voronoi.ajwerner.net/#/app-diagrams It’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…
Re: Generating Voronoi diagrams using Fortune's algorithm
#18I made an implementation in clojurescript that animates the algorithm as it goes a while back: https://voronoi.ajwerner.net/#/app-diagrams It’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…
The animation is the best I've seen. I see the "old" implementation link in the references page; any chance of open sourcing the current animation one?
Re: Generating Voronoi diagrams using Fortune's algorithm
#19https://news.ycombinator.com/item?id=37998923 - Voronoi Diagram and Delaunay Triangulation in O(n log n) with Fortune's Algorithm (2020)
The previous article and discussion contain short summaries of other algorithms. My favorite is still the Jump Flooding Algorithm.
Re: Generating Voronoi diagrams using Fortune's algorithm
#20If you are not interested in the edges, only painting the sites with different colors, you can use a variation of flood fill starting with the seeds and only stacking the pixel if that color has distance lower than the one already painted that pixel.
Render a 2D orthographic view from 'above' the apexes.
The z-buffer will preserve pixels from the nearest apex.
(Yes, I now there are shadery ways to do this, but the classic 3D cones demo is trivial to understand and implement).