Skip to main content

sort_and_sweep_flat

Function sort_and_sweep_flat 

Source
pub fn sort_and_sweep_flat(aabbs: &[f64]) -> Vec<(usize, usize)>
Expand description

Sort-and-sweep on a flat f64 AABB array (GPU-style parallel data layout).

Input layout per object: [min_x, max_x, min_y, max_y, min_z, max_z]. Returns pairs of indices (i, j) (sorted, deduped) that overlap.