Function heron::rapier_plugin::rapier2d::parry::mass_properties::details::trimesh_area_and_center_of_mass[][src]

pub fn trimesh_area_and_center_of_mass(
    vertices: &[OPoint<f32, Const<2_usize>>],
    indices: &[[u32; 3]]
) -> (f32, OPoint<f32, Const<2_usize>>)
Expand description

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