Skip to main content

thickness

Function thickness 

Source
pub fn thickness(
    target: &Bvh,
    points: &[Point],
    normals: &[Vector],
    options: &Thickness,
) -> OgeomResult<Vec<Option<f64>>>
Expand description

The wall thickness at each point of the mesh target was built over, measured into the material against the point’s outward normal; in the points’ order, None where it is thicker than Thickness::max or the inward ray leaves the mesh without crossing it.

See the module for what each method reads and what it measures to. The points are meant to lie on the mesh (a scan’s vertices, with their normals): a point off it by more than the confusion distance has no triangles of its own, and reads the surface it stands off as its wall. A point that is not finite, or whose normal has no direction, answers None.

§Errors

As Thickness::check; OgeomError::Dimension if there is not one normal per point.