pub struct ProvenanceMap { /* private fields */ }Expand description
Source IFC entities for nodes in one lowered geometry graph.
The map is partial: caller-synthesized nodes created outside an active IFC entity scope have no source instead of receiving a fabricated entity id.
Implementations§
Source§impl ProvenanceMap
impl ProvenanceMap
Sourcepub fn source(&self, node: NodeId) -> Option<EntityId>
pub fn source(&self, node: NodeId) -> Option<EntityId>
Return the IFC entity that emitted node, if it has an IFC source.
Sourcepub fn iter(&self) -> impl Iterator<Item = (NodeId, EntityId)> + '_
pub fn iter(&self) -> impl Iterator<Item = (NodeId, EntityId)> + '_
Iterate deterministically over (node, source entity) pairs.
Sourcepub fn dropped_faces(&self) -> impl Iterator<Item = EntityId> + '_
pub fn dropped_faces(&self) -> impl Iterator<Item = EntityId> + '_
IfcFace entities left out because their outer loop collapsed, in
ascending id.
Always empty under the default DegenerateFacePolicy::Refuse. A face
shared by several items is listed once. A non-empty list means the
lowered geometry is NOT exactly what the file authored: a consumer
using it as evidence decides whether that is acceptable.
Trait Implementations§
Source§impl Clone for ProvenanceMap
impl Clone for ProvenanceMap
Source§impl Debug for ProvenanceMap
impl Debug for ProvenanceMap
Source§impl Default for ProvenanceMap
impl Default for ProvenanceMap
impl Eq for ProvenanceMap
Source§impl PartialEq for ProvenanceMap
impl PartialEq for ProvenanceMap
impl StructuralPartialEq for ProvenanceMap
Auto Trait Implementations§
impl Freeze for ProvenanceMap
impl RefUnwindSafe for ProvenanceMap
impl Send for ProvenanceMap
impl Sync for ProvenanceMap
impl Unpin for ProvenanceMap
impl UnsafeUnpin for ProvenanceMap
impl UnwindSafe for ProvenanceMap
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