Read-only view for RefId/RefUID-based reference storage.
This view exposes reference-entry storage:
Identity semantics:
- RefId (kind + index) is graph-local and may change after Compact(). Use it for in-graph traversal and short-lived mutation logic.
- RefUID (kind + counter) is stable across index remapping and intended for longer-lived identity tracking. Graph generation is carried by BRepGraph_VersionStamp when freshness checks are needed.
RefsView vs TopoView naming
RefsView accessors take reference IDs (BRepGraph_ShellRefId, BRepGraph_FaceRefId) and return reference-entry structs carrying per-use orientation and location. TopoView accessors take definition IDs (BRepGraph_ShellId, BRepGraph_FaceId) and return definition structs.
Iterating over references
Reference entries are primarily traversed in parent-owned context through the typed grouped IdsOf accessors. When flat iteration is needed, iterate using the matching typed RefId over the appropriate grouped Nb() or NbActive() count:
aFaceRefId < anEndFaceRefId;
++aFaceRefId)
{
if (aFR.IsRemoved)
continue;
}
BRepGraph_RefId::Typed< BRepGraph_RefId::Kind::Face > BRepGraph_FaceRefId
Definition BRepGraph_RefId.hxx:350
const BRepGraphInc::FaceRef & Entry(const BRepGraph_FaceRefId theRefId) const
BRepGraph_FaceRefId StartId() const
Definition BRepGraph_RefsView.hxx:107
BRepGraph_FaceRefId EndId() const
Definition BRepGraph_RefsView.hxx:109
Read-only view for RefId/RefUID-based reference storage.
Definition BRepGraph_RefsView.hxx:71
const FaceOps & Faces() const
Grouped face reference queries.
Definition BRepGraph_RefsView.hxx:319
Face reference storage entry.
Definition BRepGraphInc_Reference.hxx:62
To iterate refs belonging to a specific parent, use the grouped IdsOf accessors:
{
}
BRepGraph_RefId::Typed< BRepGraph_RefId::Kind::Wire > BRepGraph_WireRefId
Definition BRepGraph_RefId.hxx:351
const NCollection_LinearVector< BRepGraph_WireRefId > & IdsOf(const BRepGraph_FaceId theFace) const
const BRepGraphInc::WireRef & Entry(const BRepGraph_WireRefId theRefId) const
const WireOps & Wires() const
Grouped wire reference queries.
Definition BRepGraph_RefsView.hxx:322
Wire reference storage entry.
Definition BRepGraphInc_Reference.hxx:72