The polyhedron centroid is the geometric centroid of a polyhedron. For a closed polyhedron
with volume and
triangular faces
having vertices
, it can be computed using the divergence
theorem as
|
(1)
| |||
|
(2)
| |||
|
(3)
|
where the normal is given by the cross product
|
(4)
|
The vertices of each face must be ordered so that points outward. These formulas apply to polyhedra
with arbitrary faces, since faces
having more than three vertices can be triangulated.
They apply to convex polyhedra as well as nonconvex
polyhedra.
The centroid can also be computed using the divergence theorem by integrating the vector fields ,
, and
which have divergence
,
,
everywhere, over the triangulated faces of the polyhedron and
dividing the resulting surface integrals by
.