Volume of voronoi cell in 3D

5 次查看(过去 30 天)
Pranab Bhuyan
Pranab Bhuyan 2015-5-10
回答: Matt J 2015-5-10
If I have a set of coordinates in the form (x,y,z), how do I calculate the volume of the Voronoi cells?
Say, I have the following coordinates:
0.1963 1.1751 0.0666
-1.1409 -0.8525 -0.4850
-0.0370 -0.8769 -0.3846
-0.7597 0.8509 -0.3084
1.0492 1.3399 -0.5731
0.1276 -1.8757 -0.6822
0.0427 -1.5727 0.3952
-1.4813 -0.2035 1.1383
-0.7175 0.3983 1.4455
1.4999 1.0951 1.4569
Now, I want to construct all the possible voronoi cells and get their volumes. How to do?
Your help will be highly appreciated.

回答(1 个)

Matt J
Matt J 2015-5-10
Should be a simple matter of using voronoin() to get the vertices of all the cells. Then, for each cell, you can use convhulln() to get the volumes.

类别

Help CenterFile Exchange 中查找有关 Voronoi Diagram 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by