Compute the size of Voronoi regions from Delaunay triangulation?

一世执手 提交于 2019-12-04 14:42:31

In order to calculate the voronoi region of a vertex you need to iterate the 1-ring around it. Then the area of the region is defined as:

A = 1/8 * (sum for every adjacent vertex p_i) { (cot alpha_i + cot beta_i) * (p_i - c).Length² }

In the image you can see the whole voronoi region in light red. A part of it is shown in dark red. This is one of the parts accumulated by the sum. alpha and beta are the angles as visible in the image. c is the center vertex position. p_i is the opposite vertex_position. alpha, beta and p_i change while iterating. c keeps its value.

If you calculate those parts for every adjacent vertex, you get 8 times the area of the voronoi region.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!