Skip to main content

query_mesh

Function query_mesh 

Source
pub fn query_mesh<F>(mesh: &Mesh<'_>, bounds: Aabb, fcn: F)
where F: FnMut(Vec3, Vec3, Vec3, i32) -> bool,
Expand description

Query mesh triangles overlapping an AABB. Callback receives (a, b, c, triangle_index) and may return false to stop early. (b3QueryMesh)