pub struct RawInstanceOccurrence {
pub express_id: u32,
pub ifc_type: String,
pub global_id: Option<String>,
pub name: Option<String>,
pub presentation_layer: Option<String>,
pub color: [f32; 4],
pub rep_identity: u128,
pub world_transform: [f64; 16],
}Expand description
#1623 Phase 2 “don’t-bake”: a non-template occurrence of a shared
IfcRepresentationMap that skipped the per-occurrence vertex materialize. The
router emits an instance-only placeholder (empty geometry carrying
InstanceMeta); [crate::element::emit_sub_meshes] turns it into one of these,
and the streaming finalize resolves it against the template MeshData into an
InstanceRecord. Purely in-memory (recomputed each load), never serialized.
Fields§
§express_id: u32This occurrence’s IFC element id.
ifc_type: StringIFC type name (e.g. “IfcFlowFitting”).
global_id: Option<String>IFC GlobalId when available.
name: Option<String>IFC Name when available.
presentation_layer: Option<String>IFC presentation layer assignment name when available.
color: [f32; 4]This occurrence’s resolved RGBA colour.
rep_identity: u128Shared-template key = the IfcRepresentationMap express id. Matches the
template MeshData’s instance.rep_identity.
world_transform: [f64; 16]PRE-RTC composed world transform (row-major) transform · local · canonical
— the same composition collate_refs computes for a baked occurrence, but
captured WITHOUT materializing vertices. The finalize reduces it to the
post-RTC frame and derives the template-relative InstanceRecord.transform.
Trait Implementations§
Source§impl Clone for RawInstanceOccurrence
impl Clone for RawInstanceOccurrence
Source§fn clone(&self) -> RawInstanceOccurrence
fn clone(&self) -> RawInstanceOccurrence
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 RawInstanceOccurrence
impl RefUnwindSafe for RawInstanceOccurrence
impl Send for RawInstanceOccurrence
impl Sync for RawInstanceOccurrence
impl Unpin for RawInstanceOccurrence
impl UnsafeUnpin for RawInstanceOccurrence
impl UnwindSafe for RawInstanceOccurrence
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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.