parry2d::mass_properties::details

Function trimesh_area_and_center_of_mass

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

Computes the area and center-of-mass of a triangle-mesh.