Skip to main content

thicknesses

Function thicknesses 

Source
pub fn thicknesses(
    mesh: &Mesh,
    bvh: &Bvh,
    max_distance: f32,
    out: &mut [f32],
) -> Result<()>
Expand description

Per-vertex wall thickness of mesh: out[v] gets the value for vertex slot v (see the module docs).

max_distance bounds the values kept (+∞ beyond it, inclusive); it must be zero or greater and not NaN, and may be infinite to keep every hit. out must hold one entry per vertex slot.

§Errors

Everything is checked before anything is written, so on error out is unchanged: