Skip to main content

inside_out_faces

Function inside_out_faces 

Source
pub fn inside_out_faces(
    model: &Model,
    solid: &Shape,
    tol: Tolerances,
) -> OgeomResult<Vec<Shape>>
Expand description

The faces of a solid that face into its material.

A face’s flag is the only thing that says which side of its surface the material is on, and a flipped one leaves every edge used twice and the shell closed: nothing topological sees it. Nor do the flags asked about each other along shared edges: that walk reads which side of an edge a face lies on from its chart, and where the chart cannot say (an apex, a boundary whose middle is not inside it) it has to take the flags as they come. So every face is probed: a point a little off it along its outward normal must lie outside the material and the point as far the other way inside it. A face whose outside is inside is named; a probe that cannot tell names nothing, so a face is never named on a guess. A face whose chart cannot be walked is not asked at all.

§Errors

OgeomError::Cancelled and OgeomError::Dangling only; a question the geometry cannot answer names no face.