Skip to main content

pick

Function pick 

Source
pub fn pick(
    meshes: &[Mesh],
    visible: impl Fn(usize) -> bool,
    origin: V3,
    dir: V3,
) -> Option<Hit>
Expand description

The nearest triangle of the meshes for which visible(i) holds that the ray from origin along dir meets (Möller–Trumbore), for the viewer’s measure tool.