Function pmp::volume

Function Documentation

Scalar pmp::volume(const SurfaceMesh &mesh)

Compute the volume of a mesh.

See zhang_2002_efficient for details.

Throws:

InvalidInputException – if the input precondition is violated.

Pre:

Input mesh needs to be a pure triangle mesh.