Skip to main content

gpu_compute_aabb

Function gpu_compute_aabb 

Source
pub fn gpu_compute_aabb(mesh: &GpuMesh) -> ([f32; 3], [f32; 3])
Expand description

Compute the axis-aligned bounding box of the mesh.

Returns (min, max) corner arrays. If the mesh has no vertices the result is ([0,0,0], [0,0,0]).