Skip to main content

face_bounds

Function face_bounds 

Source
pub fn face_bounds(model: &Model, face: &Shape) -> OgeomResult<Aabb>
Expand description

The box the model keeps for face: every point of the face, its tolerance included, in the face’s placement; found at the model’s tolerances the first time it is asked for and kept until the face changes (Model::face_bounds reads it without finding it).

The box is within the model’s tolerances of the face’s tightest one widened by its tolerance, where the face’s placement keeps the axes; under a placement that turns the face off them it is the box of the turned box.

§Errors

OgeomError::Construction if face is not a face of the model; as tight_bounds.