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 more