#[non_exhaustive]pub enum DecimateTarget {
TriangleBudget(usize),
MaxDeviation(f64),
}Expand description
What the caller wants back.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TriangleBudget(usize)
Reduce until at most this many triangles remain.
The deviation bound still applies: the budget is honoured only as far
as it can be without exceeding max_deviation.
MaxDeviation(f64)
Collapse every edge whose removal stays within this deviation.
Trait Implementations§
Source§impl Clone for DecimateTarget
impl Clone for DecimateTarget
Source§fn clone(&self) -> DecimateTarget
fn clone(&self) -> DecimateTarget
Returns a copy 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 DecimateTarget
impl Debug for DecimateTarget
Source§impl PartialEq for DecimateTarget
impl PartialEq for DecimateTarget
impl Copy for DecimateTarget
impl StructuralPartialEq for DecimateTarget
Auto Trait Implementations§
impl Freeze for DecimateTarget
impl RefUnwindSafe for DecimateTarget
impl Send for DecimateTarget
impl Sync for DecimateTarget
impl Unpin for DecimateTarget
impl UnwindSafe for DecimateTarget
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