pub struct InstanceMeta {
pub transform: [f64; 16],
pub local_transform: Option<[f64; 16]>,
pub canonical_transform: Option<[f64; 16]>,
pub rep_identity: u128,
pub instanceable: bool,
}Expand description
Side-channel instancing metadata, attached only when GPU instancing is
enabled (the IFC_LITE_INSTANCING flag). NEVER read by geometry processing
and excluded from compute_mesh_hash / meshes_equal, so content-dedup and
the default flat path are unaffected. The native helper collates occurrences
into unique geometry + per-instance transforms. Reconstruction contract:
world = (transform . local_transform) * canonical_local_vertex - rtc_offset.
Fields§
§transform: [f64; 16]Full world placement (parent . local, scaled), pre-RTC, row-major homogeneous.
local_transform: Option<[f64; 16]>IfcMappedItem mapping_transform (scaled), composed after transform.
canonical_transform: Option<[f64; 16]>Rigid-congruence canonical→local transform C_k (row-major), set by the
rotation-normalized tier (IFC_LITE_RIGID_INSTANCING) when this mesh was
grouped to a congruent-but-not-identical template. None ⇒ identity (the
exact-bit tier). Composed innermost: world = transform · local · canonical.
rep_identity: u128Representation-identity key: RepresentationMap id (mapped) or geometry hash (direct).
instanceable: boolWhether this mesh is provably shareable (not void-cut / not site-rotated).
Trait Implementations§
Source§impl Clone for InstanceMeta
impl Clone for InstanceMeta
Source§fn clone(&self) -> InstanceMeta
fn clone(&self) -> InstanceMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for InstanceMeta
impl RefUnwindSafe for InstanceMeta
impl Send for InstanceMeta
impl Sync for InstanceMeta
impl Unpin for InstanceMeta
impl UnsafeUnpin for InstanceMeta
impl UnwindSafe for InstanceMeta
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
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>
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>
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.