pub fn make_sweep_two_rails(
model: &mut Model,
profile: &Shape,
rail_a: &Shape,
rail_b: &Shape,
tol: Tolerances,
) -> OgeomResult<Built>Expand description
Sweep a profile between two rails into a sheet.
The profile is an edge or a wire, open or closed, planar or not, whose start sits on the start of one rail and whose end on the start of the other. At each fraction of the rails’ lengths the profile is placed by the similarity carrying its ends onto the rails’ points there: scaled by the distance between those points, turned so the chord between its ends follows the chord between them, and turned about that chord with the rails’ mean direction. The profile is the sheet’s first section; the sheet has one face per profile edge, passes through the placed copies exactly and keeps within ten confusions of the swept profile and the rails between them, measured halfway between each pair of copies. The long edges are the skin’s own, built on the rails’ line.
§Errors
OgeomError::Construction if
the profile or a rail is not an edge or a wire, a rail is closed, the
profile’s ends do not sit on the rails’ starts, the rails meet, or the
rails’ mean direction runs along the chord between them somewhere.
OgeomError::NotDone if the skin
cannot reach the target with the most sections it is built through.