pub fn apply_draft(
model: &mut Model,
solid: &Shape,
faces: &[Shape],
neutral: Plane,
pull: Direction,
angle: f64,
tol: Tolerances,
) -> OgeomResult<Built>Expand description
Draft the named faces of a solid about a neutral plane.
Each face turns about its own intersection with neutral by angle,
in the sense that leans the face inwards as it goes: a positive angle
narrows the solid in the pull direction (the way the part leaves its
mould), and a negative one widens it. Leaning inwards tilts the face’s
outward normal towards the pull, which is how the sense is picked, by
measurement. A face the neutral plane does not reach turns about where
its surface, run on beyond the face, meets the plane. A face parallel
to the neutral plane has no line to turn about and is refused by name,
as is a face the plane crosses in two runs (a region beside both would
turn about two hinges), a patch that stops short of the plane, and a
face the rebuild cannot re-meet.
§Errors
OgeomError::Construction if a
named face is not a planar face of solid, is parallel to the neutral
plane, or the angle is not a usable one; plus whatever the rebuild
refuses.