pub struct ObjMeshStats {
pub vertex_count: usize,
pub face_count: usize,
pub triangle_count: usize,
pub material_count: usize,
pub group_count: usize,
pub faces_with_normals: usize,
pub faces_with_uvs: usize,
pub surface_area: f64,
pub bbox: Option<([f64; 3], [f64; 3])>,
}Expand description
Statistics computed from an ObjMesh.
Fields§
§vertex_count: usizeNumber of vertices.
face_count: usizeNumber of faces.
triangle_count: usizeNumber of triangles (after fan-triangulation).
material_count: usizeNumber of unique materials.
group_count: usizeNumber of groups.
faces_with_normals: usizeNumber of faces with normals.
faces_with_uvs: usizeNumber of faces with UVs.
surface_area: f64Surface area (sum of triangle areas).
bbox: Option<([f64; 3], [f64; 3])>Axis-aligned bounding box (min, max).
Trait Implementations§
Source§impl Clone for ObjMeshStats
impl Clone for ObjMeshStats
Source§fn clone(&self) -> ObjMeshStats
fn clone(&self) -> ObjMeshStats
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 moreAuto Trait Implementations§
impl Freeze for ObjMeshStats
impl RefUnwindSafe for ObjMeshStats
impl Send for ObjMeshStats
impl Sync for ObjMeshStats
impl Unpin for ObjMeshStats
impl UnsafeUnpin for ObjMeshStats
impl UnwindSafe for ObjMeshStats
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.