pub fn collapse(bvh: &mut Bvh2, max_prims: u32, traversal_cost: f32)Expand description
Collapses leaves of the BVH according to the SAH. This optimization is only helpful for bottom-up builders, as top-down builders already have a termination criterion that prevents leaf creation when the SAH cost does not improve.