Skip to main content

closest_point_many

Function closest_point_many 

Source
pub fn closest_point_many(
    mesh: &Mesh,
    bvh: &Bvh,
    points: &[[f32; 3]],
    opts: &ClosestOptions,
    out: &mut [Option<ClosestHit>],
) -> Result<()>
Expand description

closest_point for many points: out[i] gets the result for points[i].

ยงErrors

QueryError::InvalidInput when the slices differ in length or any point is invalid, and otherwise as for closest_point. Everything is validated before anything is written, so on error out is unchanged.