How do I derive a Voronoi diagram given its point set and its Delaunay triangulation?

前端 未结 4 2227
栀梦
栀梦 2020-12-13 09:26

I\'m working on a game where I create a random map of provinces (a la Risk or Diplomacy). To create that map, I\'m first generating a series of semi-random points, then fig

4条回答
  •  無奈伤痛
    2020-12-13 10:02

    After trying to use this thread as a source for answers to my own similar question, I found that Fortune's algorithm — likely because it is the most popular & therefore most documented — was the easiest to understand.

    The Wikipedia article on Fortune's algorithm keeps fresh links to source code in C, C#, and Javascript. All of them were top-notch and came with beautiful examples.

提交回复
热议问题