pub struct RepairOptions {
pub stitch_epsilon: f32,
pub remove_degenerate: bool,
pub remove_duplicate_faces: bool,
pub harmonize_orientations: bool,
pub remove_islands: bool,
pub fill_holes: bool,
}Expand description
Configuration options for mesh repair operations.
Controls which repair operations to apply and their parameters. The default configuration applies common, safe repairs suitable for most 3D printing scenarios.
Fields§
§stitch_epsilon: f32Epsilon for merging vertices (default: 1e-4 = 0.1 microns). Vertices closer than this distance will be merged into one. Set to 0.0 to disable vertex stitching.
remove_degenerate: boolWhether to remove triangles with zero or near-zero area (default: true).
remove_duplicate_faces: boolWhether to remove duplicate triangles sharing the same vertices (default: true).
harmonize_orientations: boolWhether to harmonize triangle winding for consistent normals (default: true). Uses BFS to propagate consistent orientation through connected components.
remove_islands: boolWhether to remove disconnected islands, keeping only the largest component (default: false). Useful for removing unwanted floating geometry.
fill_holes: boolWhether to attempt to fill holes using simple fan triangulation (default: false). Detects boundary loops and caps them with triangles.
Trait Implementations§
Source§impl Clone for RepairOptions
impl Clone for RepairOptions
Source§fn clone(&self) -> RepairOptions
fn clone(&self) -> RepairOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RepairOptions
impl Debug for RepairOptions
Source§impl Default for RepairOptions
impl Default for RepairOptions
Source§impl PartialEq for RepairOptions
impl PartialEq for RepairOptions
impl Copy for RepairOptions
impl StructuralPartialEq for RepairOptions
Auto Trait Implementations§
impl Freeze for RepairOptions
impl RefUnwindSafe for RepairOptions
impl Send for RepairOptions
impl Sync for RepairOptions
impl Unpin for RepairOptions
impl UnwindSafe for RepairOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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>
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>
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