Skip to main content

query_aabb

Function query_aabb 

Source
pub fn query_aabb<P: TrxScalar>(
    trx: &TrxFile<P>,
    min: [f64; 3],
    max: [f64; 3],
) -> Vec<usize>
Expand description

Find streamline indices whose AABB intersects the given query box.

Convenience wrapper that builds AABBs on the fly. For repeated queries on the same data, use build_streamline_aabbs + query_aabb_cached instead.

min and max define the query AABB corners. Comparisons are done in f32, matching trx-cpp’s behavior.