#[non_exhaustive]pub struct MeshDefinitionMeasurements {
pub mesh_index: usize,
pub name: String,
pub vertex_count: u32,
pub geometry_aabb: Option<Aabb>,
pub geometry_centroid: Option<[f32; 3]>,
pub max_joints_per_vertex: u32,
pub weight_sum_min: Option<f64>,
pub weight_sum_max: Option<f64>,
pub additional_influence_sets: Vec<AdditionalInfluenceSetMeasurements>,
}Expand description
Static base-geometry measurements of one source mesh definition.
Vertex data is measured from loader-decoded base geometry: indexed meshes count each stored position once, while unindexed meshes count every stored triangle corner. The geometry AABB and centroid are in the definition’s primitive coordinate system and exclude node transforms, morph targets, skinning, animation, and runtime placement.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mesh_index: usizeStable index of the mesh definition in the source format.
name: StringMesh name.
vertex_count: u32Total position count across the mesh’s primitives.
geometry_aabb: Option<Aabb>Bounding box over every finite base POSITION; None when none exist.
geometry_centroid: Option<[f32; 3]>Arithmetic mean of every finite base POSITION; None when none
exist. Like Self::geometry_aabb, this is in mesh-definition local
coordinates and excludes node transforms, morph targets, skinning,
animation, and runtime placement.
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.
additional_influence_sets: Vec<AdditionalInfluenceSetMeasurements>Declared non-primary skin-influence sets, merged across every primitive in this mesh definition and sorted by set number.
Trait Implementations§
Source§impl Clone for MeshDefinitionMeasurements
impl Clone for MeshDefinitionMeasurements
Source§fn clone(&self) -> MeshDefinitionMeasurements
fn clone(&self) -> MeshDefinitionMeasurements
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more