Cargo Features

polyhedral_mass_properties has no features set by default.

[dependencies]
polyhedral_mass_properties = { version = "0.2.2", features = ["std", "fma", "serde", "gltf"] }
std fma? gltf?

Enable the usage of the standard library.

fma = std

Use FMA instructions for better performance. Needs to be compiled with RUSTFLAGS="-C target-cpu=native".

serde

Implement Serialize and Deserialize for Inertia and MassProperties.

Enables serde

gltf = std

Enable calculating the mass properties for gltf/glb files.

Enables gltf

Affects polyhedral_mass_properties::GltfErr