pub struct DecimateOptions {
pub target_faces: usize,
pub max_error: Option<f64>,
}Expand description
Options controlling how far decimation proceeds.
Decimation stops as soon as either limit is reached:
target_faces: stop once the live triangle count is<= target_faces.max_error: stop once the cheapest available collapse would exceed this quadric error.Nonemeans “no error ceiling” (run totarget_faces).
At least one of the two must bound the run; if both are None, decimation
runs until no further legal collapse exists (full simplification), which is
well-defined but rarely what a caller wants — prefer setting a target.
Fields§
§target_faces: usizeTarget live triangle count. Collapsing stops at or below this.
max_error: Option<f64>Optional quadric-error ceiling; collapses costing more are not taken.
Implementations§
Trait Implementations§
Source§impl Clone for DecimateOptions
impl Clone for DecimateOptions
Source§fn clone(&self) -> DecimateOptions
fn clone(&self) -> DecimateOptions
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 moreSource§impl Debug for DecimateOptions
impl Debug for DecimateOptions
Source§impl PartialEq for DecimateOptions
impl PartialEq for DecimateOptions
Source§fn eq(&self, other: &DecimateOptions) -> bool
fn eq(&self, other: &DecimateOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DecimateOptions
impl StructuralPartialEq for DecimateOptions
Auto Trait Implementations§
impl Freeze for DecimateOptions
impl RefUnwindSafe for DecimateOptions
impl Send for DecimateOptions
impl Sync for DecimateOptions
impl Unpin for DecimateOptions
impl UnsafeUnpin for DecimateOptions
impl UnwindSafe for DecimateOptions
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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