signed_volume

Function signed_volume 

Source
pub fn signed_volume(positions: &[f32], indices: &[u32]) -> f64
Expand description

Signed volume by the divergence theorem, accumulated in f64 about the bounding-box centre ([mesh_check::signed_volume]). Referencing the centre (not the world origin) keeps the result translation-stable for open meshes and far-from-origin operands. Positive for outward (CCW) winding.