pub struct SweepOptions {
pub contact_mode: SweepContactMode,
pub corner_mode: SweepCornerMode,
pub scale_law: Option<Box<dyn Fn(f64) -> f64 + Send + Sync>>,
pub segments: usize,
pub aux_spine: Option<NurbsCurve>,
}Expand description
Options for advanced sweep operations.
Fields§
§contact_mode: SweepContactModeContact mode for profile orientation.
corner_mode: SweepCornerModeCorner handling mode for path kinks.
scale_law: Option<Box<dyn Fn(f64) -> f64 + Send + Sync>>Scale function: maps path parameter t ∈ [0, 1] to a scale factor.
None means uniform scale (1.0 everywhere).
segments: usizeNumber of path segments (0 = auto from control point count).
aux_spine: Option<NurbsCurve>Auxiliary spine (guide curve). When set, the profile is oriented so its
up-vector points toward this curve at each path parameter — a guided
(two-rail) sweep — overriding contact_mode. Sampled at the same
parameter as the main path.
Trait Implementations§
Source§impl Debug for SweepOptions
impl Debug for SweepOptions
Source§impl Default for SweepOptions
impl Default for SweepOptions
Source§fn default() -> SweepOptions
fn default() -> SweepOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SweepOptions
impl !UnwindSafe for SweepOptions
impl Freeze for SweepOptions
impl Send for SweepOptions
impl Sync for SweepOptions
impl Unpin for SweepOptions
impl UnsafeUnpin for SweepOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more