Easiest algorithm of Voronoi diagram to implement?

2019-01-10 03:30发布

What are the easy algorithms to implement Voronoi diagram?

I couldn't find any algorithm specially in pseudo form. Please share some links of Voronoi diagram algorithm, tutorial etc.

15条回答
孤傲高冷的网名
2楼-- · 2019-01-10 03:59

The Wikipedia page (http://en.wikipedia.org/wiki/Voronoi_diagram) has an Algorithms section with links to algorithms for implementing Voronoi diagrams.

查看更多
再贱就再见
3楼-- · 2019-01-10 04:00

The most effecient algorithm to construct a voronoi diagram is Fortune's algorithm. It runs in O(n log n).

Here is a link to his reference implementation in C.

Personally I really like the python implementation by Bill Simons and Carson Farmer, since I found it easier to extend.

查看更多
萌系小妹纸
4楼-- · 2019-01-10 04:01

Check brute-force solution presented with pseudo-code by Richard Franks in his answer on the question How do I derive a Voronoi diagram given its point set and its Delaunay triangulation?

查看更多
登录 后发表回答