pub fn offset_sheet(
model: &mut Model,
sheet: &Shape,
distance: f64,
tol: Tolerances,
) -> OgeomResult<Built>Expand description
Offset a sheet (a face or a shell, open or closed) by distance along
its normals: each face’s surface moves on its own chart, its trim and
its joins to its neighbours carried over one for one, so the history
maps every face, edge and vertex to the one it became.
A face with no parallel in its own family is fitted within the
approximation tolerance where refining the fit reaches it, and
otherwise within the larger of the face’s own tolerance and a
ten-thousandth of distance; its tolerance (and so its edges’ and
vertices’) covers the deviation the fit measured.
§Errors
OgeomError::Construction if
the shape is not a face or a shell, distance moves nothing, the
distance reaches past a face’s smallest radius of curvature on the side
it moves to, the faces meet at a crease (the offsets of the two sides
part or cross there), an edge is shared by more than two faces, or a
free-form face has no normal where the offset needs one;
OgeomError::NotDone if the finest
fit misses that bound.