pub struct Control {
pub orientation: Orientation,
pub twist: f64,
pub end_scale: f64,
pub rails: Vec<Chain<NurbCurve3D>>,
}Expand description
How the profile changes as it travels, besides being carried along the
path (see sweep_along). Every section of the sweep is the profile
mapped about the path’s start point in the profile’s plane — its centre
— by a turn and a scale:
- twist and scale grow evenly with the length travelled, from
none to
twist(radians, counter-clockwise in the profile’s plane as drawn) and from one toend_scale; - rails, one or two, decide them instead: where each rail crosses a
section is where the profile’s point it starts at goes. One rail turns
and scales the profile uniformly about the centre; two map it linearly,
which scales it differently along different directions. That is the
sweep following the path and its first guide: with
Orientation::FollowPaththe section planes are square to the path, and the rails turn the profile within them.
Fields§
§orientation: Orientation§twist: f64§end_scale: f64§rails: Vec<Chain<NurbCurve3D>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnsafeUnpin for Control
impl UnwindSafe for Control
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more