Skip to main content

Module tight

Module tight 

Source
Expand description

The smallest axis-aligned box that holds a shape: how big a body is.

shape_bounds promises to hold everything and so keeps each surface’s carrier bound, which for a surface of revolution or a trimmed cone can stand well clear of the solid. Here each extreme is found where it is: on an edge, by a one-dimensional search along its curve, or inside a face, at a point of the exact surface found from the face’s own mesh and held to the face’s chart.

Functions§

face_bounds
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).
tight_bounds
The smallest axis-aligned box holding shape, to within tol: each of its six sides where the shape actually reaches, on an edge, at a vertex or inside a face.