pub struct DecimationMetrics {
pub original_vertices: usize,
pub original_triangles: usize,
pub reduced_vertices: usize,
pub reduced_triangles: usize,
pub n_collapses: usize,
pub total_qem_cost: f64,
pub max_qem_cost: f64,
}Expand description
Statistics from a decimation run.
Fields§
§original_vertices: usizeOriginal vertex count.
original_triangles: usizeOriginal triangle count.
reduced_vertices: usizeReduced vertex count.
reduced_triangles: usizeReduced triangle count.
n_collapses: usizeNumber of edge collapses performed.
total_qem_cost: f64Total QEM cost accumulated.
max_qem_cost: f64Maximum QEM cost in any single collapse.
Implementations§
Source§impl DecimationMetrics
impl DecimationMetrics
Sourcepub fn vertex_reduction_ratio(&self) -> f64
pub fn vertex_reduction_ratio(&self) -> f64
Compute reduction ratio for vertices [0, 1].
Sourcepub fn triangle_reduction_ratio(&self) -> f64
pub fn triangle_reduction_ratio(&self) -> f64
Compute reduction ratio for triangles [0, 1].
Sourcepub fn avg_qem_cost(&self) -> f64
pub fn avg_qem_cost(&self) -> f64
Average QEM cost per collapse.
Trait Implementations§
Source§impl Clone for DecimationMetrics
impl Clone for DecimationMetrics
Source§fn clone(&self) -> DecimationMetrics
fn clone(&self) -> DecimationMetrics
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 DecimationMetrics
impl Debug for DecimationMetrics
Source§impl Default for DecimationMetrics
impl Default for DecimationMetrics
Source§fn default() -> DecimationMetrics
fn default() -> DecimationMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecimationMetrics
impl RefUnwindSafe for DecimationMetrics
impl Send for DecimationMetrics
impl Sync for DecimationMetrics
impl Unpin for DecimationMetrics
impl UnsafeUnpin for DecimationMetrics
impl UnwindSafe for DecimationMetrics
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.