polyhedral_mass_properties 0.2.2

Calculation of mass properties for triangle meshes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Polyhedral Mass Properties

Calculates the mass properties (mass, center of mass and inertia matrix/tensor) of triangle meshes.

The algorithm is based on the paper ["Computing the Moment of Inertia of a Solid Defined by a Triangle Mesh"](https://doi.org/10.1080/2151237X.2006.10129220) by Michael Kallay ([Code](https://github.com/erich666/jgt-code/blob/master/Volume_11/Number_2/Kallay2006/Moment_of_Inertia.cpp)).

## Documentation

Documentation with examples is available on [**docs.rs**](https://docs.rs/polyhedral_mass_properties) 📚️

## Demo binary

The binary [`mass-props`](https://crates.io/crates/mass-props) uses this library to calculate the mass properties of meshes in glTF files.
You can try it out to test the output of this library.