
Hi,
I am going to create colorful Voronoi mesh. i use MIconvexhull VoronoiGraph.
I nneed to know which seedpoints every voronoi nodes/edges is created from.
Please help.


Developer
Jan 5, 2012 at 9:19 PM

Hi,
sorry for the late reply, only checked it today.
The seedpoints correspond to the "Vertices" property ofthe VoronoiMesh object. In order to get tho coordinates of the point, you have to compute the circumcenter of the tetrahedron corresponding to the given cell. The example DelaunayAndVoronoiWPF show
how to do this. If you want to color each of the voronoi cells differently however, you will need to do a little more work, because the example only draws the edges. I never needed to actually represent the bondary of the voronoi cell in my work, so I haven't
got to implementing it yet.



Hi,
I fortunately solved problem. I've added a seedNo[] table to VoronoiEdge and fill this table with integers which stends for number of Voronoi Cell using MyFace property within every VoronoiEdge object.

