pub struct AnalyzeOptions { /* private fields */ }Expand description
Options for analyze_mesh. Not in C++ meshoptimizer.
The default, Self::EMPTY, analyzes index topology (two corners are the
same vertex only when they use the same index) and lists nothing.
Implementations§
Source§impl AnalyzeOptions
impl AnalyzeOptions
Sourcepub const fn with_weld_positions(self, enabled: bool) -> Self
pub const fn with_weld_positions(self, enabled: bool) -> Self
Analyze position-coincident topology instead of index topology:
vertices with equal positions count as one vertex, using the same
equality as SanitizeOptions::WELD_POSITIONS (exact, with 0.0 and
-0.0 equal). No tolerance is applied and no index is rewritten.
Sourcepub const fn with_list_limit(self, limit: usize) -> Self
pub const fn with_list_limit(self, limit: usize) -> Self
List at most limit entries of each kind in MeshAnalysis::lists.
Zero, the default, lists nothing; counts are always complete.
Sourcepub const fn weld_positions(self) -> bool
pub const fn weld_positions(self) -> bool
Whether position-coincident topology is analyzed.
Sourcepub const fn list_limit(self) -> usize
pub const fn list_limit(self) -> usize
Maximum entries listed of each kind.
Trait Implementations§
Source§impl Clone for AnalyzeOptions
impl Clone for AnalyzeOptions
impl Copy for AnalyzeOptions
Source§impl Debug for AnalyzeOptions
impl Debug for AnalyzeOptions
Source§impl Default for AnalyzeOptions
impl Default for AnalyzeOptions
impl Eq for AnalyzeOptions
Source§impl PartialEq for AnalyzeOptions
impl PartialEq for AnalyzeOptions
impl StructuralPartialEq for AnalyzeOptions
Auto Trait Implementations§
impl Forget for AnalyzeOptions
impl Freeze for AnalyzeOptions
impl Move for AnalyzeOptions
impl RefUnwindSafe for AnalyzeOptions
impl Send for AnalyzeOptions
impl Sync for AnalyzeOptions
impl Unpin for AnalyzeOptions
impl UnsafeUnpin for AnalyzeOptions
impl UnwindSafe for AnalyzeOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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