Skip to main content

gpu_compute_volume

Function gpu_compute_volume 

Source
pub fn gpu_compute_volume(mesh: &GpuMesh) -> f32
Expand description

Compute the signed volume of the mesh via the divergence theorem.

Assumes the mesh forms a closed manifold.