pub struct GeometryStats {
pub object_count: usize,
pub instance_count: usize,
pub triangle_count: u64,
pub vertex_count: u64,
pub bounding_box: Option<BoundingBox>,
pub surface_area: f64,
pub volume: f64,
pub is_manifold: bool,
pub type_counts: HashMap<String, usize>,
}Expand description
Geometric statistics for the model.
Aggregates counts and measurements of the model’s geometry including vertices, triangles, bounding box, surface area, and volume.
Fields§
§object_count: usizeTotal number of object resources
instance_count: usizeNumber of build items (instances to print)
triangle_count: u64Total number of triangles across all meshes
vertex_count: u64Total number of vertices across all meshes
bounding_box: Option<BoundingBox>Axis-aligned bounding box of the entire model
surface_area: f64Total surface area in square model units
volume: f64Total volume in cubic model units
is_manifold: boolWhether all meshes are manifold (watertight)
type_counts: HashMap<String, usize>Count of objects by type (e.g., {“model”: 5, “support”: 2})
Trait Implementations§
Source§impl Clone for GeometryStats
impl Clone for GeometryStats
Source§fn clone(&self) -> GeometryStats
fn clone(&self) -> GeometryStats
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 GeometryStats
impl Debug for GeometryStats
Source§impl Default for GeometryStats
impl Default for GeometryStats
Source§fn default() -> GeometryStats
fn default() -> GeometryStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeometryStats
impl<'de> Deserialize<'de> for GeometryStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GeometryStats
impl RefUnwindSafe for GeometryStats
impl Send for GeometryStats
impl Sync for GeometryStats
impl Unpin for GeometryStats
impl UnwindSafe for GeometryStats
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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