pub struct ComponentOptions {
pub min_triangles: Option<usize>,
pub min_area: Option<f64>,
pub keep_largest: bool,
}Expand description
Options for remove_small_components().
Fields§
§min_triangles: Option<usize>Remove components with fewer triangles than this.
min_area: Option<f64>Remove components with less area than this (local units squared).
keep_largest: boolKeep the largest component even when it is below a bound. Largest
means most area; ties go to the most triangles, then the smallest
triangle id. Default true.
Implementations§
Source§impl ComponentOptions
impl ComponentOptions
Sourcepub fn builder() -> ComponentOptionsBuilder
pub fn builder() -> ComponentOptionsBuilder
A builder for ComponentOptions: every option unset, as Default,
until set.
Trait Implementations§
Source§impl Clone for ComponentOptions
impl Clone for ComponentOptions
Source§fn clone(&self) -> ComponentOptions
fn clone(&self) -> ComponentOptions
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 ComponentOptions
Source§impl Debug for ComponentOptions
impl Debug for ComponentOptions
Source§impl Default for ComponentOptions
impl Default for ComponentOptions
Source§impl PartialEq for ComponentOptions
impl PartialEq for ComponentOptions
impl StructuralPartialEq for ComponentOptions
Auto Trait Implementations§
impl Freeze for ComponentOptions
impl RefUnwindSafe for ComponentOptions
impl Send for ComponentOptions
impl Sync for ComponentOptions
impl Unpin for ComponentOptions
impl UnsafeUnpin for ComponentOptions
impl UnwindSafe for ComponentOptions
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