Skip to main content

query_flat

Function query_flat 

Source
pub fn query_flat(
    nodes: &[FlatBvhNode],
    prim_indices: &[usize],
    bvh_primitives: &[BvhPrimitive],
    query: &Aabb,
) -> Vec<usize>
Expand description

Iterative AABB query over a flat BVH.

Returns the object_id values of all primitives whose AABB overlaps query. bvh_primitives is the Bvh::primitives slice.