|
| Result | Add (const TopoDS_Shape &theShape) |
| | Ingest a TopoDS_Shape as a new root subgraph, wrapping the topology root in a Product.
|
| Result | Add (const TopoDS_Shape &theShape, const Options &theOptions) |
| | Ingest a TopoDS_Shape as a new root subgraph with explicit options.
|
| Result | Add (const TopoDS_Shape &theShape, const BRepGraph_NodeId theParent) |
| | Ingest a TopoDS_Shape under an existing parent.
|
| Result | Add (const TopoDS_Shape &theShape, const BRepGraph_NodeId theParent, const Options &theOptions) |
| | Ingest a shape under an existing parent with explicit options. Options::CreateAutoProduct is ignored.
|
| void | CollectHistoryInputs (const NCollection_Array1< BRepGraph_NodeId > &theRoots, NCollection_DataMap< TopoDS_Shape, BRepGraph_NodeId, TopTools_ShapeMapHasher > &theOutInputs) const |
| | Collect a TopoDS_Shape -> NodeId map for graph roots and all subshapes resolvable through FindNode(). This is intended for algorithms that reconstruct selected graph roots to TopoDS, run OCCT, and then need to translate BRepTools_History back to graph NodeIds.
|
| Result | AddWithHistory (const TopoDS_Shape &theResultShape, const NCollection_DataMap< TopoDS_Shape, BRepGraph_NodeId, TopTools_ShapeMapHasher > &theInputs, const occ::handle< BRepTools_History > &theHistory, const TCollection_AsciiString &theOpLabel) |
| | Add an OCCT algorithm result and absorb BRepTools_History into the registered BRepGraph_LayerHistory layer using explicit input shape mapping.
|
| Result | AddWithHistory (const TopoDS_Shape &theResultShape, const NCollection_DataMap< TopoDS_Shape, BRepGraph_NodeId, TopTools_ShapeMapHasher > &theInputs, const occ::handle< BRepTools_History > &theHistory, const TCollection_AsciiString &theOpLabel, const Options &theOptions) |
| | Add an OCCT algorithm result and absorb BRepTools_History with explicit options.
|
| Result | AddWithHistory (const TopoDS_Shape &theResultShape, const NCollection_Array1< BRepGraph_NodeId > &theInputRoots, const occ::handle< BRepTools_History > &theHistory, const TCollection_AsciiString &theOpLabel) |
| | Convenience overload that collects the history input map from selected roots.
|
| Result | AddWithHistory (const TopoDS_Shape &theResultShape, const NCollection_Array1< BRepGraph_NodeId > &theInputRoots, const occ::handle< BRepTools_History > &theHistory, const TCollection_AsciiString &theOpLabel, const Options &theOptions) |
| | Convenience overload that collects the history input map from selected roots and uses explicit options.
|
| TopoDS_Shape | Shape (const BRepGraph_NodeId theNode) const |
| | Return or reconstruct a TopoDS_Shape for a node. Prefer this route for repeated public queries. Returns a cached shape when available and valid; otherwise reconstructs. Topology definition nodes (Vertex..CompSolid) reconstruct their topology directly, without assembly wrappers. Product nodes are reconstructed in product-local coordinates. Occurrence nodes are reconstructed with cumulative occurrence placement.
|
| bool | HasOriginal (const BRepGraph_NodeId theNode) const |
| | Check if the node has an original shape from graph construction. Editor-created and mutation-derived nodes have no original.
|
| TopoDS_Shape | Original (const BRepGraph_NodeId theNode) const |
| | Return the original TopoDS_Shape stored during graph construction.
|
| TopoDS_Shape | Reconstruct (const BRepGraph_NodeId theRoot) const |
| | Reconstruct a TopoDS_Shape from a graph node without using the persistent cache. Use this when the caller explicitly needs a fresh rebuild instead of the shared cached shape returned by Shape(). This method does not populate the persistent reconstructed-shape cache. Topology definition nodes reconstruct topology directly. Product nodes are reconstructed in product-local coordinates. Occurrence nodes are reconstructed with cumulative occurrence placement.
|
| void | ClearCached (const BRepGraph_NodeId theNode) |
| | Remove the cached reconstructed shape for one node. Does not change graph generation counters and does not rebuild the shape. Invalid or removed nodes are ignored.
|
| void | ClearCached (const BRepGraph_RefId theRef) |
| | Remove the cached reconstructed shape for the node referenced by one reference. Does not change graph generation counters and does not rebuild the shape. Invalid or removed references are ignored.
|
| BRepGraph_NodeId | FindNode (const TopoDS_Shape &theShape) const |
| | Look up the definition NodeId for a shape from graph construction input. Uses OCCT IsSame() semantics (TShape + Location, orientation ignored). Synthetic Product / Occurrence reconstructions are not given dedicated TShape bindings, so lookup is only guaranteed for construction-time topology. Programmatically created Editor().Add*() nodes can still be located by UID or by direct iteration over Topo() definitions.
|
| bool | HasNode (const TopoDS_Shape &theShape) const |
| | Check if a shape is known to the graph (was part of construction input). Uses OCCT IsSame() semantics (TShape + Location, orientation ignored). Synthetic Product / Occurrence reconstructions are not given dedicated TShape bindings, so this is only guaranteed for construction-time topology. Programmatically created Editor().Add*() nodes can still be located by UID or by direct iteration over Topo() definitions.
|
| bool | RemoveShape (const TopoDS_Shape &theShape) |
| | Remove the active graph node corresponding to a construction-time shape. This is the convenience equivalent of FindNode(theShape) followed by Editor().Gen().RemoveNode(node).
|
View for TopoDS_Shape ingestion, reconstruction and lookup.
Reconstructs TopoDS shapes from graph nodes on demand, with caching for repeated access. Topology nodes are delegated to the incidence-table reconstruction backend, while Product / Occurrence nodes are assembled at the facade level using product-local roots and occurrence placement chains. Provides lookup from construction-time shapes back to their graph NodeIds using OCCT shape identity (TShape + Location, orientation ignored). Shape() is the stable cached public route for repeated access; Reconstruct() forces a fresh rebuild with the same node-kind semantics and bypasses the persistent reconstructed-shape cache. Add() and Compact() clear the persistent reconstructed-shape cache. Obtained via BRepGraph::Shapes().