Function nphysics3d::volumetric::convex_mesh_mass_properties [] [src]

pub unsafe fn convex_mesh_mass_properties<P, I>(convex_mesh: &TriMesh<P>, density: P::Vect::Scalar) -> (P::Vect::Scalar, P, I) where P: Point, I: Zero + Add<I, Output=I> + Mul<P::Vect::Scalar, Output=I> + IndexMut<(usize, usize), Output=P::Vect::Scalar>

The mass properties of a convex mesh.

This is unsafe as the mesh is not checked to be actually convex.