compas_cgal.measure.volume

compas_cgal.measure.volume(mesh: Union[Tuple[nptyping.types._ndarray.NDArray, nptyping.types._ndarray.NDArray], Tuple[List[List[float][List[float]]], List[List[int][List[int]]]]]) → float[source]

Compute the volume of a closed triangle mesh.

Parameters

mesh (tuple of vertices and faces) – The mesh.

Returns

float – The volume of the mesh.