Skip to main content

apply_draft

Function apply_draft 

Source
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, measured rather than assumed from a convention nobody can check. A face parallel to the neutral plane has no line to turn about and is refused by name, as is 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.