pub struct SmoothOptionsBuilder { /* private fields */ }Expand description
A builder for SmoothOptions, see SmoothOptions::builder.
Implementations§
Source§impl SmoothOptionsBuilder
impl SmoothOptionsBuilder
Sourcepub fn falloff(self, falloff: Falloff) -> Self
pub fn falloff(self, falloff: Falloff) -> Self
How the effect fades with distance from the center.
Sourcepub fn strength(self, strength: f32) -> Self
pub fn strength(self, strength: f32) -> Self
Displacement scale; the per-vertex weight is strength * falloff.
Sourcepub fn method(self, method: SmoothMethod) -> Self
pub fn method(self, method: SmoothMethod) -> Self
How each cycle relaxes (Taubin λ/μ by default).
Sourcepub fn build(self) -> SmoothOptions
pub fn build(self) -> SmoothOptions
The options as set.
Trait Implementations§
Source§impl Clone for SmoothOptionsBuilder
impl Clone for SmoothOptionsBuilder
Source§fn clone(&self) -> SmoothOptionsBuilder
fn clone(&self) -> SmoothOptionsBuilder
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 moreSource§impl Debug for SmoothOptionsBuilder
impl Debug for SmoothOptionsBuilder
Source§impl Default for SmoothOptionsBuilder
impl Default for SmoothOptionsBuilder
Source§fn default() -> SmoothOptionsBuilder
fn default() -> SmoothOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SmoothOptionsBuilder
impl RefUnwindSafe for SmoothOptionsBuilder
impl Send for SmoothOptionsBuilder
impl Sync for SmoothOptionsBuilder
impl Unpin for SmoothOptionsBuilder
impl UnsafeUnpin for SmoothOptionsBuilder
impl UnwindSafe for SmoothOptionsBuilder
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