Re: [boost] [polygon] voronoi diagram in a bounding box

10 Feb
2015
10 Feb
'15
6:37 a.m.
Hi Andrii, I'm implementing a Lloyd's algorithm to get a centroidal Voronoi tessellation of a box. In this algorithm, I need to get the voronoi cells in the box, and find the centroids of these cells. Thanks,Dan

10 Feb
10 Feb
10:44 p.m.
New subject: [polygon] voronoi diagram in a bounding box
Alright, thanks for the explanation! Please have a look at the attached file. The method signature you are interested in is the following: static void clip(const voronoi_edge<CT> &edge, const brect_type &brect, point_set_type &clipped_edge) Let me know if the example is unclear or you have any other questions. Regards, Andrii
3750
Age (days ago)
3750
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andrii Sydorchuk
-
Dan Chen