volume_reference

Function volume_reference 

Source
pub fn volume_reference(mesh: &Mesh) -> [f64; 3]
Expand description

The point signed_volume sums mesh about: the centre of its position bounds (the origin for an empty mesh). kernel::signed_volume uses the same rule over the vertices its triangles reference, so the two agree unless the buffer holds unreferenced positions. On native, positions are absolute, and an open surface’s divergence sum grows with the distance to the reference point, so the point must lie within the operand’s extent, not at the world origin. Read off Mesh::bounds, a linear scan of the position buffer, so the sum itself is the only index walk.