pub struct Collated {
pub templates: Vec<InstanceTemplate>,
pub flat_indices: Vec<usize>,
}Expand description
Result of collation: instanced templates + the meshes left to render flat.
Fields§
§templates: Vec<InstanceTemplate>Unique geometries with their per-instance transforms.
flat_indices: Vec<usize>Indices of input meshes rendered without instancing (non-instanceable, singleton groups, or groups that failed the geometry-shape guard).
Implementations§
Source§impl Collated
impl Collated
Sourcepub fn unique_geometry_count(&self) -> usize
pub fn unique_geometry_count(&self) -> usize
Total number of unique geometries that would be uploaded (templates + flat meshes) — the figure that bounds browser ingestion.
Sourcepub fn instanced_occurrence_count(&self) -> usize
pub fn instanced_occurrence_count(&self) -> usize
Total occurrences represented across all templates (excludes flat meshes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Collated
impl RefUnwindSafe for Collated
impl Send for Collated
impl Sync for Collated
impl Unpin for Collated
impl UnsafeUnpin for Collated
impl UnwindSafe for Collated
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<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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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.