pub fn thickness_of_shape(
model: &Model,
shape: &Shape,
points: &[Point],
normals: &[Vector],
options: &Thickness,
) -> OgeomResult<Vec<Option<f64>>>Expand description
The wall thickness at each point of shape, a solid or a shell,
measured into the material against the point’s outward normal on the
faces’ own surfaces; in the points’ order, None where it is thicker
than Thickness::max or the inward ray leaves the shape without
meeting a face.
A ray meets a face where it crosses the face’s surface inside its trim,
or within the band of the trimming rings drawn at ten thousand times the
confusion distance, as classify_in_solid_exact
draws them. A sphere’s nearest surface is
to_shape’s nearest point, among the
faces, edges and vertices not within the facing limit of edge-on to the
point’s normal. See the module for the rest.
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;
OgeomError::Construction if
the shape is not a solid, a shell or a compound of solids; and as the
intersections and projections report.