|
| | BRepGraphInc_Storage (const occ::handle< NCollection_BaseAllocator > &theAlloc=occ::handle< NCollection_BaseAllocator >()) |
| | Construct with allocator for internal collections. If null, uses CommonBaseAllocator.
|
| |
| const occ::handle< NCollection_BaseAllocator > & | Allocator () const |
| | Return the allocator used for internal collections.
|
| |
| uint32_t | NbVertices () const |
| | Returns the total number of vertex entities (including removed).
|
| |
| uint32_t | NbEdges () const |
| | Returns the total number of edge entities (including removed).
|
| |
| uint32_t | NbCoEdges () const |
| | Returns the total number of coedge entities (including removed).
|
| |
| uint32_t | NbWires () const |
| | Returns the total number of wire entities (including removed).
|
| |
| uint32_t | NbFaces () const |
| | Returns the total number of face entities (including removed).
|
| |
| uint32_t | NbShells () const |
| | Returns the total number of shell entities (including removed).
|
| |
| uint32_t | NbSolids () const |
| | Returns the total number of solid entities (including removed).
|
| |
| uint32_t | NbCompounds () const |
| | Returns the total number of compound entities (including removed).
|
| |
| uint32_t | NbCompSolids () const |
| | Returns the total number of compsolid entities (including removed).
|
| |
| uint32_t | NbProducts () const |
| | Returns the total number of product entities (including removed).
|
| |
| uint32_t | NbOccurrences () const |
| | Returns the total number of occurrence entities (including removed).
|
| |
| uint32_t | NbShellRefs () const |
| | Returns the total number of shell reference entries (including removed).
|
| |
| uint32_t | NbFaceRefs () const |
| | Returns the total number of face reference entries (including removed).
|
| |
| uint32_t | NbWireRefs () const |
| | Returns the total number of wire reference entries (including removed).
|
| |
| uint32_t | NbCoEdgeRefs () const |
| | Returns the total number of coedge reference entries (including removed).
|
| |
| uint32_t | NbVertexRefs () const |
| | Returns the total number of vertex reference entries (including removed).
|
| |
| uint32_t | NbSolidRefs () const |
| | Returns the total number of solid reference entries (including removed).
|
| |
| uint32_t | NbChildRefs () const |
| | Returns the total number of child reference entries (including removed).
|
| |
| uint32_t | NbOccurrenceRefs () const |
| | Returns the total number of occurrence reference entries (including removed).
|
| |
| uint32_t | NbSurfaces () const |
| | Returns the total number of surface representations.
|
| |
| uint32_t | NbCurves3D () const |
| | Returns the total number of 3D curve representations.
|
| |
| uint32_t | NbCurves2D () const |
| | Returns the total number of 2D curve representations.
|
| |
| uint32_t | NbTriangulations () const |
| | Returns the total number of triangulation representations.
|
| |
| uint32_t | NbPolygons3D () const |
| | Returns the total number of 3D polygon representations.
|
| |
| uint32_t | NbPolygons2D () const |
| | Returns the total number of 2D polygon representations.
|
| |
| uint32_t | NbPolygonsOnTri () const |
| | Returns the total number of polygon-on-triangulation representations.
|
| |
| uint32_t | NbActiveSurfaces () const |
| | Returns the number of active surface representations (excluding removed).
|
| |
| uint32_t | NbActiveCurves3D () const |
| | Returns the number of active 3D curve representations (excluding removed).
|
| |
| uint32_t | NbActiveCurves2D () const |
| | Returns the number of active 2D curve representations (excluding removed).
|
| |
| uint32_t | NbActiveTriangulations () const |
| | Returns the number of active triangulation representations (excluding removed).
|
| |
| uint32_t | NbActivePolygons3D () const |
| | Returns the number of active 3D polygon representations (excluding removed).
|
| |
| uint32_t | NbActivePolygons2D () const |
| | Returns the number of active 2D polygon representations (excluding removed).
|
| |
| uint32_t | NbActivePolygonsOnTri () const |
| | Returns the number of active polygon-on-triangulation representations (excluding removed).
|
| |
| uint32_t | NbActiveVertices () const |
| | Returns the number of active vertex entities (excluding removed).
|
| |
| uint32_t | NbActiveEdges () const |
| | Returns the number of active edge entities (excluding removed).
|
| |
| uint32_t | NbActiveCoEdges () const |
| | Returns the number of active coedge entities (excluding removed).
|
| |
| uint32_t | NbActiveWires () const |
| | Returns the number of active wire entities (excluding removed).
|
| |
| uint32_t | NbActiveFaces () const |
| | Returns the number of active face entities (excluding removed).
|
| |
| uint32_t | NbActiveShells () const |
| | Returns the number of active shell entities (excluding removed).
|
| |
| uint32_t | NbActiveSolids () const |
| | Returns the number of active solid entities (excluding removed).
|
| |
| uint32_t | NbActiveCompounds () const |
| | Returns the number of active compound entities (excluding removed).
|
| |
| uint32_t | NbActiveCompSolids () const |
| | Returns the number of active compsolid entities (excluding removed).
|
| |
| uint32_t | NbActiveProducts () const |
| | Returns the number of active product entities (excluding removed).
|
| |
| uint32_t | NbActiveOccurrences () const |
| | Returns the number of active occurrence entities (excluding removed).
|
| |
| uint32_t | NbActiveShellRefs () const |
| | Returns the number of active shell reference entries (excluding removed).
|
| |
| uint32_t | NbActiveFaceRefs () const |
| | Returns the number of active face reference entries (excluding removed).
|
| |
| uint32_t | NbActiveWireRefs () const |
| | Returns the number of active wire reference entries (excluding removed).
|
| |
| uint32_t | NbActiveCoEdgeRefs () const |
| | Returns the number of active coedge reference entries (excluding removed).
|
| |
| uint32_t | NbActiveVertexRefs () const |
| | Returns the number of active vertex reference entries (excluding removed).
|
| |
| uint32_t | NbActiveSolidRefs () const |
| | Returns the number of active solid reference entries (excluding removed).
|
| |
| uint32_t | NbActiveChildRefs () const |
| | Returns the number of active child reference entries (excluding removed).
|
| |
| uint32_t | NbActiveOccurrenceRefs () const |
| | Returns the number of active occurrence reference entries (excluding removed).
|
| |
| bool | MarkRemoved (const BRepGraph_NodeId theNodeId) |
| | Mark an entity node as removed and decrement its active counter once.
|
| |
| bool | MarkRemovedRef (const BRepGraph_RefId theRefId) |
| | Mark a reference entry as removed and decrement its active counter once.
|
| |
| bool | MarkRemovedRep (const BRepGraph_RepId theRepId) |
| | Mark a representation entry as removed and decrement its active counter once.
|
| |
| const BRepGraphInc::SurfaceRep & | SurfaceRep (const BRepGraph_SurfaceRepId theRep) const |
| | Returns the surface representation at the given typed id.
|
| |
| const BRepGraphInc::Curve3DRep & | Curve3DRep (const BRepGraph_Curve3DRepId theRep) const |
| | Returns the 3D curve representation at the given typed id.
|
| |
| const BRepGraphInc::Curve2DRep & | Curve2DRep (const BRepGraph_Curve2DRepId theRep) const |
| | Returns the 2D curve representation at the given typed id.
|
| |
| const BRepGraphInc::TriangulationRep & | TriangulationRep (const BRepGraph_TriangulationRepId theRep) const |
| | Returns the triangulation representation at the given typed id.
|
| |
| const BRepGraphInc::Polygon3DRep & | Polygon3DRep (const BRepGraph_Polygon3DRepId theRep) const |
| | Returns the 3D polygon representation at the given typed id.
|
| |
| const BRepGraphInc::Polygon2DRep & | Polygon2DRep (const BRepGraph_Polygon2DRepId theRep) const |
| | Returns the 2D polygon representation at the given typed id.
|
| |
| const BRepGraphInc::PolygonOnTriRep & | PolygonOnTriRep (const BRepGraph_PolygonOnTriRepId theRep) const |
| | Returns the polygon-on-triangulation representation at the given typed id.
|
| |
| BRepGraphInc::SurfaceRep & | ChangeSurfaceRep (const BRepGraph_SurfaceRepId theRep) |
| | Returns a mutable reference to the surface representation at the given typed id.
|
| |
| BRepGraphInc::Curve3DRep & | ChangeCurve3DRep (const BRepGraph_Curve3DRepId theRep) |
| | Returns a mutable reference to the 3D curve representation at the given typed id.
|
| |
| BRepGraphInc::Curve2DRep & | ChangeCurve2DRep (const BRepGraph_Curve2DRepId theRep) |
| | Returns a mutable reference to the 2D curve representation at the given typed id.
|
| |
| BRepGraphInc::TriangulationRep & | ChangeTriangulationRep (const BRepGraph_TriangulationRepId theRep) |
| | Returns a mutable reference to the triangulation representation at the given typed id.
|
| |
| BRepGraphInc::Polygon3DRep & | ChangePolygon3DRep (const BRepGraph_Polygon3DRepId theRep) |
| | Returns a mutable reference to the 3D polygon representation at the given typed id.
|
| |
| BRepGraphInc::Polygon2DRep & | ChangePolygon2DRep (const BRepGraph_Polygon2DRepId theRep) |
| | Returns a mutable reference to the 2D polygon representation at the given typed id.
|
| |
| BRepGraphInc::PolygonOnTriRep & | ChangePolygonOnTriRep (const BRepGraph_PolygonOnTriRepId theRep) |
| | Returns a mutable reference to the polygon-on-triangulation representation at the given typed id.
|
| |
| BRepGraph_SurfaceRepId | AppendSurfaceRep () |
| | Appends a new surface representation slot and returns its typed id.
|
| |
| BRepGraph_Curve3DRepId | AppendCurve3DRep () |
| | Appends a new 3D curve representation slot and returns its typed id.
|
| |
| BRepGraph_Curve2DRepId | AppendCurve2DRep () |
| | Appends a new 2D curve representation slot and returns its typed id.
|
| |
| BRepGraph_TriangulationRepId | AppendTriangulationRep () |
| | Appends a new triangulation representation slot and returns its typed id.
|
| |
| BRepGraph_Polygon3DRepId | AppendPolygon3DRep () |
| | Appends a new 3D polygon representation slot and returns its typed id.
|
| |
| BRepGraph_Polygon2DRepId | AppendPolygon2DRep () |
| | Appends a new 2D polygon representation slot and returns its typed id.
|
| |
| BRepGraph_PolygonOnTriRepId | AppendPolygonOnTriRep () |
| | Appends a new polygon-on-triangulation representation slot and returns its typed id.
|
| |
| const BRepGraphInc::VertexDef & | Vertex (const BRepGraph_VertexId theVertex) const |
| | Returns the vertex entity at the given typed id.
|
| |
| const BRepGraphInc::EdgeDef & | Edge (const BRepGraph_EdgeId theEdge) const |
| | Returns the edge entity at the given typed id.
|
| |
| const BRepGraphInc::CoEdgeDef & | CoEdge (const BRepGraph_CoEdgeId theCoEdge) const |
| | Returns the coedge entity at the given typed id.
|
| |
| const BRepGraphInc::WireDef & | Wire (const BRepGraph_WireId theWire) const |
| | Returns the wire entity at the given typed id.
|
| |
| const BRepGraphInc::FaceDef & | Face (const BRepGraph_FaceId theFace) const |
| | Returns the face entity at the given typed id.
|
| |
| const BRepGraphInc::ShellDef & | Shell (const BRepGraph_ShellId theShell) const |
| | Returns the shell entity at the given typed id.
|
| |
| const BRepGraphInc::SolidDef & | Solid (const BRepGraph_SolidId theSolid) const |
| | Returns the solid entity at the given typed id.
|
| |
| const BRepGraphInc::CompoundDef & | Compound (const BRepGraph_CompoundId theCompound) const |
| | Returns the compound entity at the given typed id.
|
| |
| const BRepGraphInc::CompSolidDef & | CompSolid (const BRepGraph_CompSolidId theCompSolid) const |
| | Returns the compsolid entity at the given typed id.
|
| |
| const BRepGraphInc::ProductDef & | Product (const BRepGraph_ProductId theProduct) const |
| | Returns the product entity at the given typed id.
|
| |
| const BRepGraphInc::OccurrenceDef & | Occurrence (const BRepGraph_OccurrenceId theOccurrence) const |
| | Returns the occurrence entity at the given typed id.
|
| |
| const BRepGraphInc::ShellRef & | ShellRef (const BRepGraph_ShellRefId theRefId) const |
| | Returns the shell reference entry at the given typed id.
|
| |
| const BRepGraphInc::FaceRef & | FaceRef (const BRepGraph_FaceRefId theRefId) const |
| | Returns the face reference entry at the given typed id.
|
| |
| const BRepGraphInc::WireRef & | WireRef (const BRepGraph_WireRefId theRefId) const |
| | Returns the wire reference entry at the given typed id.
|
| |
| const BRepGraphInc::CoEdgeRef & | CoEdgeRef (const BRepGraph_CoEdgeRefId theRefId) const |
| | Returns the coedge reference entry at the given typed id.
|
| |
| const BRepGraphInc::VertexRef & | VertexRef (const BRepGraph_VertexRefId theRefId) const |
| | Returns the vertex reference entry at the given typed id.
|
| |
| const BRepGraphInc::SolidRef & | SolidRef (const BRepGraph_SolidRefId theRefId) const |
| | Returns the solid reference entry at the given typed id.
|
| |
| const BRepGraphInc::ChildRef & | ChildRef (const BRepGraph_ChildRefId theRefId) const |
| | Returns the child reference entry at the given typed id.
|
| |
| const BRepGraphInc::OccurrenceRef & | OccurrenceRef (const BRepGraph_OccurrenceRefId theRefId) const |
| | Returns the occurrence reference entry at the given typed id.
|
| |
| BRepGraphInc::VertexDef & | ChangeVertex (const BRepGraph_VertexId theVertex) |
| | Returns a mutable reference to the vertex entity at the given typed id.
|
| |
| BRepGraphInc::EdgeDef & | ChangeEdge (const BRepGraph_EdgeId theEdge) |
| | Returns a mutable reference to the edge entity at the given typed id.
|
| |
| BRepGraphInc::CoEdgeDef & | ChangeCoEdge (const BRepGraph_CoEdgeId theCoEdge) |
| | Returns a mutable reference to the coedge entity at the given typed id.
|
| |
| BRepGraphInc::WireDef & | ChangeWire (const BRepGraph_WireId theWire) |
| | Returns a mutable reference to the wire entity at the given typed id.
|
| |
| BRepGraphInc::FaceDef & | ChangeFace (const BRepGraph_FaceId theFace) |
| | Returns a mutable reference to the face entity at the given typed id.
|
| |
| BRepGraphInc::ShellDef & | ChangeShell (const BRepGraph_ShellId theShell) |
| | Returns a mutable reference to the shell entity at the given typed id.
|
| |
| BRepGraphInc::SolidDef & | ChangeSolid (const BRepGraph_SolidId theSolid) |
| | Returns a mutable reference to the solid entity at the given typed id.
|
| |
| BRepGraphInc::CompoundDef & | ChangeCompound (const BRepGraph_CompoundId theCompound) |
| | Returns a mutable reference to the compound entity at the given typed id.
|
| |
| BRepGraphInc::CompSolidDef & | ChangeCompSolid (const BRepGraph_CompSolidId theCompSolid) |
| | Returns a mutable reference to the compsolid entity at the given typed id.
|
| |
| BRepGraphInc::ProductDef & | ChangeProduct (const BRepGraph_ProductId theProduct) |
| | Returns a mutable reference to the product entity at the given typed id.
|
| |
| BRepGraphInc::OccurrenceDef & | ChangeOccurrence (const BRepGraph_OccurrenceId theOccurrence) |
| | Returns a mutable reference to the occurrence entity at the given typed id.
|
| |
| BRepGraphInc::ShellRef & | ChangeShellRef (const BRepGraph_ShellRefId theRefId) |
| | Returns a mutable reference to the shell reference entry at the given typed id.
|
| |
| BRepGraphInc::FaceRef & | ChangeFaceRef (const BRepGraph_FaceRefId theRefId) |
| | Returns a mutable reference to the face reference entry at the given typed id.
|
| |
| BRepGraphInc::WireRef & | ChangeWireRef (const BRepGraph_WireRefId theRefId) |
| | Returns a mutable reference to the wire reference entry at the given typed id.
|
| |
| BRepGraphInc::CoEdgeRef & | ChangeCoEdgeRef (const BRepGraph_CoEdgeRefId theRefId) |
| | Returns a mutable reference to the coedge reference entry at the given typed id.
|
| |
| BRepGraphInc::VertexRef & | ChangeVertexRef (const BRepGraph_VertexRefId theRefId) |
| | Returns a mutable reference to the vertex reference entry at the given typed id.
|
| |
| BRepGraphInc::SolidRef & | ChangeSolidRef (const BRepGraph_SolidRefId theRefId) |
| | Returns a mutable reference to the solid reference entry at the given typed id.
|
| |
| BRepGraphInc::ChildRef & | ChangeChildRef (const BRepGraph_ChildRefId theRefId) |
| | Returns a mutable reference to the child reference entry at the given typed id.
|
| |
| BRepGraphInc::OccurrenceRef & | ChangeOccurrenceRef (const BRepGraph_OccurrenceRefId theRefId) |
| | Returns a mutable reference to the occurrence reference entry at the given typed id.
|
| |
| BRepGraph_VertexId | AppendVertex () |
| | Appends a new vertex entity and returns its typed id.
|
| |
| BRepGraph_EdgeId | AppendEdge () |
| | Appends a new edge entity and returns its typed id.
|
| |
| BRepGraph_CoEdgeId | AppendCoEdge () |
| | Appends a new coedge entity and returns its typed id.
|
| |
| BRepGraph_WireId | AppendWire () |
| | Appends a new wire entity and returns its typed id.
|
| |
| BRepGraph_FaceId | AppendFace () |
| | Appends a new face entity and returns its typed id.
|
| |
| BRepGraph_ShellId | AppendShell () |
| | Appends a new shell entity and returns its typed id.
|
| |
| BRepGraph_SolidId | AppendSolid () |
| | Appends a new solid entity and returns its typed id.
|
| |
| BRepGraph_CompoundId | AppendCompound () |
| | Appends a new compound entity and returns its typed id.
|
| |
| BRepGraph_CompSolidId | AppendCompSolid () |
| | Appends a new compsolid entity and returns its typed id.
|
| |
| BRepGraph_ProductId | AppendProduct () |
| | Appends a new product entity and returns its typed id.
|
| |
| BRepGraph_OccurrenceId | AppendOccurrence () |
| | Appends a new occurrence entity and returns its typed id.
|
| |
| BRepGraph_ShellRefId | AppendShellRef () |
| | Appends a new shell reference entry and returns its typed id.
|
| |
| BRepGraph_FaceRefId | AppendFaceRef () |
| | Appends a new face reference entry and returns its typed id.
|
| |
| BRepGraph_WireRefId | AppendWireRef () |
| | Appends a new wire reference entry and returns its typed id.
|
| |
| BRepGraph_CoEdgeRefId | AppendCoEdgeRef () |
| | Appends a new coedge reference entry and returns its typed id.
|
| |
| BRepGraph_VertexRefId | AppendVertexRef () |
| | Appends a new vertex reference entry and returns its typed id.
|
| |
| BRepGraph_SolidRefId | AppendSolidRef () |
| | Appends a new solid reference entry and returns its typed id.
|
| |
| BRepGraph_ChildRefId | AppendChildRef () |
| | Appends a new child reference entry and returns its typed id.
|
| |
| BRepGraph_OccurrenceRefId | AppendOccurrenceRef () |
| | Appends a new occurrence reference entry and returns its typed id.
|
| |
| const NCollection_DynamicArray< BRepGraph_UID > & | UIDs (const BRepGraph_NodeId::Kind theKind) const |
| | Return the per-kind UID vector for a given Kind.
|
| |
| NCollection_DynamicArray< BRepGraph_UID > & | ChangeUIDs (const BRepGraph_NodeId::Kind theKind) |
| | Return the per-kind UID vector for a given Kind (mutable).
|
| |
| void | ResetAllUIDs () |
| | Clear all UID vectors (reset lengths to 0).
|
| |
| const BRepGraphInc::BaseRef & | BaseRef (const BRepGraph_RefId theRefId) const |
| | Return the BaseRef portion of any ref entry by generic RefId.
|
| |
| BRepGraphInc::BaseRef & | ChangeBaseRef (const BRepGraph_RefId theRefId) |
| | Return the mutable BaseRef portion of any ref entry by generic RefId.
|
| |
| const NCollection_DynamicArray< BRepGraph_RefUID > & | RefUIDs (const BRepGraph_RefId::Kind theKind) const |
| | Return the per-kind transitional reference UID vector.
|
| |
| NCollection_DynamicArray< BRepGraph_RefUID > & | ChangeRefUIDs (const BRepGraph_RefId::Kind theKind) |
| | Return the per-kind transitional reference UID vector (mutable).
|
| |
| void | ResetAllRefUIDs () |
| | Clear all transitional reference UID vectors.
|
| |
| const BRepGraphInc_ReverseIndex & | ReverseIndex () const |
| | Returns the reverse index for parent-child relationship queries.
|
| |
| BRepGraphInc_ReverseIndex & | ChangeReverseIndex () |
| | Returns a mutable reference to the reverse index.
|
| |
| const BRepGraph_NodeId * | FindNodeByTShape (const TopoDS_TShape *theTShape) const |
| | Returns the node id bound to the given TShape, or nullptr if not bound.
|
| |
| bool | HasTShapeBinding (const TopoDS_TShape *theTShape) const |
| | Returns true if the given TShape is bound to a node.
|
| |
| void | BindTShapeToNode (const TopoDS_TShape *theTShape, const BRepGraph_NodeId theNodeId) |
| | Binds the given TShape to a node id.
|
| |
| const TopoDS_Shape * | FindOriginal (const BRepGraph_NodeId theNodeId) const |
| | Back-reference to the source TopoDS_Shape a node was built from. Only populated during Build; absent bindings are a valid state.
|
| |
| bool | HasOriginal (const BRepGraph_NodeId theNodeId) const |
| | Returns true if the given node id has an original shape binding.
|
| |
| void | BindOriginal (const BRepGraph_NodeId theNodeId, const TopoDS_Shape &theShape) |
| | Binds the given node id to its original shape.
|
| |
| void | UnBindOriginal (const BRepGraph_NodeId theNodeId) |
| | Removes the original shape binding for the given node id.
|
| |
| template<typename FuncT > |
| void | ForEachTShapeBinding (FuncT &&theFunc) const |
| | Iterate all TShape-to-NodeId bindings, invoking theFunc(TShape*, NodeId) for each entry. Used by Compact to rebuild the map after the rebuild-and-swap.
|
| |
| template<typename FuncT > |
| void | ForEachOriginalBinding (FuncT &&theFunc) const |
| | Iterate all NodeId-to-OriginalShape bindings, invoking theFunc(NodeId, Shape) for each entry. Used by Compact to rebuild the map after the rebuild-and-swap.
|
| |
| bool | GetIsDone () const |
| |
| void | SetIsDone (const bool theVal) |
| |
| void | Clear () |
| | Clear all storage.
|
| |
| void | BuildReverseIndex () |
| | Build reverse indices from entity and relationship tables. Call after population is complete.
|
| |
| void | BuildDeltaReverseIndex (const uint32_t theOldNbEdges, const uint32_t theOldNbWires, const uint32_t theOldNbFaces, const uint32_t theOldNbShells, const uint32_t theOldNbSolids, const uint32_t theOldNbCompounds, const uint32_t theOldNbCompSolids, const uint32_t theOldNbChildRefs, const uint32_t theOldNbSolidRefs) |
| | Incrementally update reverse indices for entities appended after a previous BuildReverseIndex(). Only processes entities and refs from the old counts to the current vector lengths - the caller must snapshot ChildRef / SolidRef counts before any Append so this remains O(delta), not O(total).
|
| |
| bool | ValidateReverseIndex () const |
| | Debug: verify reverse index consistency against entity tables.
|
| |