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.
Sourcepub fn seam_windows(&self) -> impl Iterator<Item = EntityId> + '_
pub fn seam_windows(&self) -> impl Iterator<Item = EntityId> + '_
The stations lowered with the kernel’s seam-snapping window (#423),
in ascending id: each IfcPointByDistanceExpression or
IfcAxis2PlacementLinear on a basis whose seams lie at arc-length
integrals, which the kernel snaps onto a seam within the model’s
precision when it resolves the station. A kernel refusal of such a
window names these stations
(GeometryError::StationSeamWindowRefused, with compile).
Sourcepub fn seam_window_runs(&self) -> impl Iterator<Item = EntityId> + '_
pub fn seam_window_runs(&self) -> impl Iterator<Item = EntityId> + '_
The runs whose stations carry the kernel’s seam-snapping window
(#429), in ascending id: each IfcSectionedSolidHorizontal,
IfcSectionedSurface or IfcOffsetCurveByDistances along a basis
whose seams lie at arc-length integrals, whose stations the kernel
snaps onto a seam within the model’s precision; and each
IfcOffsetCurveByDistances continued to a basis end whose distance
the kernel measures (#433). A kernel refusal of such a window, or of
the stations’ order once snapped or once the end is resolved, names
these runs (GeometryError::RunSeamWindowRefused, with compile).
Trait Implementations§
Source§impl Clone for ProvenanceMap
impl Clone for ProvenanceMap
Source§fn clone(&self) -> ProvenanceMap
fn clone(&self) -> ProvenanceMap
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more