#[non_exhaustive]pub struct MeshMeasurements {
pub name: String,
pub vertex_count: u32,
pub aabb: Option<Aabb>,
pub max_joints_per_vertex: u32,
pub weight_sum_min: Option<f64>,
pub weight_sum_max: Option<f64>,
}Expand description
Static (animation-independent) measurements of one mesh carried in
SceneAssets. Emitted by measure when the input carried geometry
(both the FBX and glTF loaders fill SceneAssets). Vertex data is
read as authored — indexed meshes count their unique vertices,
unindexed meshes count every triangle corner.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringMesh name.
vertex_count: u32Total position count across the mesh’s primitives.
aabb: Option<Aabb>Bounding box over every primitive position; None for a mesh
with no positions.
max_joints_per_vertex: u32Highest number of non-zero skin influences on any single vertex
(0 for an unskinned mesh).
weight_sum_min: Option<f64>Min/max of the per-vertex skin-weight sums (≈1.0 for a
well-formed skin); None for an unskinned mesh.
weight_sum_max: Option<f64>Maximum finite per-vertex skin-weight sum; None for an
unskinned mesh.
Trait Implementations§
Source§impl Clone for MeshMeasurements
impl Clone for MeshMeasurements
Source§fn clone(&self) -> MeshMeasurements
fn clone(&self) -> MeshMeasurements
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MeshMeasurements
impl Debug for MeshMeasurements
Source§impl<'de> Deserialize<'de> for MeshMeasurements
impl<'de> Deserialize<'de> for MeshMeasurements
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 MeshMeasurements
impl RefUnwindSafe for MeshMeasurements
impl Send for MeshMeasurements
impl Sync for MeshMeasurements
impl Unpin for MeshMeasurements
impl UnsafeUnpin for MeshMeasurements
impl UnwindSafe for MeshMeasurements
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