How to calculate the center of mass of a polyhedron?
16 次查看(过去 30 天)
显示 更早的评论
Hello, I am trying to calculate the center of a convex polyhedron based on its 'mass'.
I originally calculated it by simply taking the averages of the vertices in the x,y,and z directions. However, if there is a point added to an already existing face, this skews the center.
My initial thought is to break the polyhedron into tetrahedra, find their individual centers of mass and then add those up. I can't figure out how to do this. I try to use the Delaunay Triangulation, but I can't figure out the output.
0 个评论
回答(2 个)
Roger Stafford
2014-1-24
I assume you are in three dimensions, Joshua. The centroid of any tetrahedron is always at the point which is the average value of the coordinates of its four vertices. However the centroid of a polyhedron which is decomposed into separate tetrahedra will be the weighted average of the centroids of these individual tetrahedra where this weighting is proportional to the volumes of the tetrahedra. For example, if you have a polyhedron which is composed of two tetrahedra and one tetrahedron is twice the volume of the second, then the centroid is located at 2/3*C1+1/3*C2 where C1 and C2 are centroids of the larger and smaller of the two tetrahedra, respectively. Using this method of weighted averaging, the further decomposition into more tetrahedra will not shift the overall centroid.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Triangulation Representation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!