Skip to main content

mesh_compactness

Function mesh_compactness 

Source
pub fn mesh_compactness(mesh: &SimpleMesh) -> f64
Expand description

Compactness ratio: 36π V² / A³ (= 1 for a sphere, < 1 otherwise).

Returns 0.0 if area is effectively zero.