parry3d/mass_properties/mass_properties_convex_polyhedron.rs
1use crate::mass_properties::MassProperties;
2use crate::math::{Point, Real, DIM};
3
4impl MassProperties {
5 /// Computes the mass properties of a convex polyhedron.
6 pub fn from_convex_polyhedron(
7 density: Real,
8 vertices: &[Point<Real>],
9 indices: &[[u32; DIM]],
10 ) -> MassProperties {
11 Self::from_trimesh(density, vertices, indices)
12 }
13}