Skip to main content

classify_on_face

Function classify_on_face 

Source
pub fn classify_on_face(
    model: &Model,
    face: &Shape,
    point: Point,
    deflection: Deflection,
    tol: Tolerances,
) -> OgeomResult<Containment>
Expand description

Where a point sits relative to a face.

A point off the face’s surface is Containment::Out: a face is a patch of surface, so “inside” can only mean inside its trimming, and a point in space that does not lie on the surface at all is not inside anything.

§Errors

OgeomError::Construction if face is not a face, or the deflection settings are unusable; OgeomError::Dangling if a handle fails to resolve.