pub struct SimplificationStats {
pub original_vertices: usize,
pub original_triangles: usize,
pub final_vertices: usize,
pub final_triangles: usize,
pub vertices_welded: usize,
pub degenerate_removed: usize,
pub small_triangles_removed: usize,
pub max_error_introduced: f32,
}Expand description
Statistics from mesh simplification
Fields§
§original_vertices: usize§original_triangles: usize§final_vertices: usize§final_triangles: usize§vertices_welded: usize§degenerate_removed: usize§small_triangles_removed: usize§max_error_introduced: f32Implementations§
Source§impl SimplificationStats
impl SimplificationStats
Sourcepub fn vertex_reduction_percent(&self) -> f32
pub fn vertex_reduction_percent(&self) -> f32
Calculates the reduction percentage achieved
Sourcepub fn triangle_reduction_percent(&self) -> f32
pub fn triangle_reduction_percent(&self) -> f32
Calculates the triangle reduction percentage achieved
Trait Implementations§
Source§impl Debug for SimplificationStats
impl Debug for SimplificationStats
Source§impl Default for SimplificationStats
impl Default for SimplificationStats
Source§fn default() -> SimplificationStats
fn default() -> SimplificationStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimplificationStats
impl RefUnwindSafe for SimplificationStats
impl Send for SimplificationStats
impl Sync for SimplificationStats
impl Unpin for SimplificationStats
impl UnsafeUnpin for SimplificationStats
impl UnwindSafe for SimplificationStats
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