pub struct AutoRepairOptions {
pub weld_tolerance: f32,
pub min_triangles: usize,
pub max_edges: Option<usize>,
pub fair: bool,
}Expand description
Options for auto_repair().
Fields§
§weld_tolerance: f32Vertices at most this far apart are welded, in local units. Default
1e-5.
min_triangles: usizeComponents with fewer triangles are removed; the largest component
always stays. Default 500.
max_edges: Option<usize>Fill only holes with at most this many edges; None fills any size,
an open mesh’s outer boundary included. Default Some(64).
fair: boolRefine and fair each fill so that it continues the surrounding
curvature (FillOptions::fair). Default true.
Implementations§
Source§impl AutoRepairOptions
impl AutoRepairOptions
Sourcepub fn builder() -> AutoRepairOptionsBuilder
pub fn builder() -> AutoRepairOptionsBuilder
A builder for AutoRepairOptions: every option unset, as
Default, until set.
Trait Implementations§
Source§impl Clone for AutoRepairOptions
impl Clone for AutoRepairOptions
Source§fn clone(&self) -> AutoRepairOptions
fn clone(&self) -> AutoRepairOptions
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 AutoRepairOptions
Source§impl Debug for AutoRepairOptions
impl Debug for AutoRepairOptions
Source§impl Default for AutoRepairOptions
impl Default for AutoRepairOptions
Source§impl PartialEq for AutoRepairOptions
impl PartialEq for AutoRepairOptions
impl StructuralPartialEq for AutoRepairOptions
Auto Trait Implementations§
impl Freeze for AutoRepairOptions
impl RefUnwindSafe for AutoRepairOptions
impl Send for AutoRepairOptions
impl Sync for AutoRepairOptions
impl Unpin for AutoRepairOptions
impl UnsafeUnpin for AutoRepairOptions
impl UnwindSafe for AutoRepairOptions
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