pub struct RepairOptions {
pub remove_duplicates: bool,
pub fix_orientation: bool,
pub close_rings: bool,
pub remove_spikes: bool,
pub remove_collinear: bool,
pub tolerance: f64,
}Expand description
Options for geometry repair operations
Fields§
§remove_duplicates: boolRemove duplicate consecutive vertices
fix_orientation: boolFix ring orientation (exterior CCW, holes CW)
close_rings: boolClose unclosed rings
remove_spikes: boolRemove spike vertices
remove_collinear: boolRemove collinear vertices
tolerance: f64Tolerance for coordinate equality (default: f64::EPSILON)
Implementations§
Source§impl RepairOptions
impl RepairOptions
Trait Implementations§
Source§impl Clone for RepairOptions
impl Clone for RepairOptions
Source§fn clone(&self) -> RepairOptions
fn clone(&self) -> RepairOptions
Returns a duplicate 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 RepairOptions
impl Debug 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 UnsafeUnpin for RepairOptions
impl UnwindSafe for RepairOptions
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