pub fn make_helical_sweep(
model: &mut Model,
profile: &Shape,
axis: Axis,
pitch: f64,
turns: f64,
left_handed: bool,
taper_per_turn: f64,
tol: Tolerances,
) -> OgeomResult<Built>Expand description
Sweep a planar profile lying in a plane through axis along a helix
about axis: a screw motion, the profile keeping its plane through the
axis the whole way, every point of it running its own helix. The
thread and spring operation.
pitch is the advance per turn along axis, turns how far the
profile turns, left_handed turns it the other way about the axis for
the same advance, and taper_per_turn moves every point away from the
axis by that much per turn (a conical helix; zero for a cylindrical
one). The walls are fitted through each profile edge’s exact screw
images; the caps are the profile where it starts and where it ends.
§Errors
OgeomError::Construction if
the profile is not a planar face whose plane holds the axis, reaches
the axis, would meet itself one turn on (its extent along the axis is
not less than the pitch), or tapers onto the axis; if pitch or
turns is not positive.
OgeomError::NotDone if a wall
cannot be fitted.