pub fn signed_volume(
vertices: &[Point3],
triangles: &[[u32; 3]],
) -> Result<f64, MeshMeasureError>Expand description
Signed volume = Σ (1/6) · a · (b × c) (divergence theorem, tetrahedra to the origin).
For a closed, consistently-oriented mesh this is the enclosed volume, and its
sign encodes global orientation (positive when triangles wind outward / CCW seen
from outside). For a closed mesh the result is origin-independent; for an open mesh
the value is origin-dependent and not a meaningful volume — the caller must confirm
closure (via super::topology::build_triangle_half_edges, boundary-edge count = 0)
before interpreting it as such. Deterministic (fixed summation order).