pub enum SweepCornerMode {
Smooth,
Miter,
Round,
}Expand description
Corner handling mode for sweep operations.
When a path has sharp corners (tangent discontinuities), this controls how the swept solid handles the transition between path segments.
Variants§
Smooth
Smooth interpolation through corners (default behavior). May produce self-intersections at sharp corners.
Miter
Miter joints at sharp corners. Each path segment is swept independently, and adjacent segments are joined by miter faces on the bisector plane of the two tangent directions. Produces clean geometry at sharp turns.
Round
At each kink, insert a smooth fillet blend by rotating the profile through the turn angle in small angular steps.
Trait Implementations§
Source§impl Clone for SweepCornerMode
impl Clone for SweepCornerMode
Source§fn clone(&self) -> SweepCornerMode
fn clone(&self) -> SweepCornerMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SweepCornerMode
Source§impl Debug for SweepCornerMode
impl Debug for SweepCornerMode
Source§impl Default for SweepCornerMode
impl Default for SweepCornerMode
Source§fn default() -> SweepCornerMode
fn default() -> SweepCornerMode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SweepCornerMode
impl RefUnwindSafe for SweepCornerMode
impl Send for SweepCornerMode
impl Sync for SweepCornerMode
impl Unpin for SweepCornerMode
impl UnsafeUnpin for SweepCornerMode
impl UnwindSafe for SweepCornerMode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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