parry3d::mass_properties::details

Function trimesh_signed_volume_and_center_of_mass

source
pub fn trimesh_signed_volume_and_center_of_mass(
    vertices: &[Point<f32>],
    indices: &[[u32; 3]],
) -> (f32, Point<f32>)
Expand description

Computes the volume and center-of-mass of a mesh.