pub struct SmoothOptions {
pub factor: Scalar,
pub passes: u32,
pub fix_boundary: bool,
}Expand description
How strongly each pass pulls a vertex toward its neighbourhood average.
A factor of 1 replaces the vertex with the average outright, which is stable for a single pass but oscillates across several on an irregular mesh. Values below 1 damp that.
Fields§
§factor: ScalarRelaxation factor in (0, 1].
passes: u32Number of passes.
fix_boundary: boolWhether boundary vertices stay exactly where they are.
Trait Implementations§
Source§impl Clone for SmoothOptions
impl Clone for SmoothOptions
Source§fn clone(&self) -> SmoothOptions
fn clone(&self) -> SmoothOptions
Returns a copy of the value. Read more
1.0.0 · 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 SmoothOptions
impl Debug for SmoothOptions
Source§impl Default for SmoothOptions
impl Default for SmoothOptions
Source§impl PartialEq for SmoothOptions
impl PartialEq for SmoothOptions
impl Copy for SmoothOptions
impl StructuralPartialEq for SmoothOptions
Auto Trait Implementations§
impl Freeze for SmoothOptions
impl RefUnwindSafe for SmoothOptions
impl Send for SmoothOptions
impl Sync for SmoothOptions
impl Unpin for SmoothOptions
impl UnwindSafe for SmoothOptions
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