Backend topology/geometry population for BRepGraph.
More...
#include <BRepGraphInc_Populate.hxx>
|
| static BuildStatus | Perform (BRepGraph &theGraph, const TopoDS_Shape &theShape, bool theParallel, const Options &theOptions=Options()) |
| | Build backend incidence storage from a TopoDS_Shape.
|
| static BuildStatus | AppendFlattened (BRepGraph &theGraph, const TopoDS_Shape &theShape, bool theParallel, NCollection_LinearVector< BRepGraph_NodeId > &theAppendedRoots, const Options &theOptions=Options()) |
| | Extend existing backend storage with additional shapes (no clear). Flattens hierarchy containers away; Solid/Shell/Compound/CompSolid inputs contribute appended face roots instead of container entities. Recomputes the built-in metadata layers from the populated storage.
|
| static BuildStatus | Append (BRepGraph &theGraph, const TopoDS_Shape &theShape, bool theParallel, const Options &theOptions=Options()) |
| | Extend existing backend storage with additional shapes (no clear). Preserves the full shape hierarchy: Solid/Shell/Compound/CompSolid nodes are created alongside Face/Edge/Vertex nodes. Shapes already present in the storage with the same definition identity (TShape + Location, orientation ignored) are deduplicated and not re-added.
|
Backend topology/geometry population for BRepGraph.
This class is part of the BRepGraphInc backend and is intended for backend maintenance, tests, and low-level infrastructure only. External code should enter through BRepGraph::ShapesView::Add(), which owns the public lifecycle, cache invalidation, and layer coordination.
The builder stores forward child relations only. Reverse relations are rebuilt by BRepGraphInc_Storage after population.
◆ BuildStatus
Result of a build operation.
| Enumerator |
|---|
| Success | All faces built successfully.
|
| SuccessWithWarnings | Build completed with diagnostics, e.g. unbounded natural faces.
|
| Failed | Build failed (e.g., null shape, internal error).
|
◆ BRepGraphInc_Populate()
| BRepGraphInc_Populate::BRepGraphInc_Populate |
( |
| ) |
|
|
delete |
◆ Append()
Extend existing backend storage with additional shapes (no clear). Preserves the full shape hierarchy: Solid/Shell/Compound/CompSolid nodes are created alongside Face/Edge/Vertex nodes. Shapes already present in the storage with the same definition identity (TShape + Location, orientation ignored) are deduplicated and not re-added.
- Parameters
-
| [in,out] | theGraph | graph whose storage to extend |
| [in] | theShape | shape to append |
| [in] | theParallel | if true, face-level extraction runs in parallel |
| [in] | theOptions | optional post-pass controls |
- Returns
- build status indicating success, warnings, or failure
◆ AppendFlattened()
Extend existing backend storage with additional shapes (no clear). Flattens hierarchy containers away; Solid/Shell/Compound/CompSolid inputs contribute appended face roots instead of container entities. Recomputes the built-in metadata layers from the populated storage.
- Parameters
-
| [in,out] | theGraph | graph whose storage to extend |
| [in] | theShape | shape to append |
| [in] | theParallel | if true, face-level extraction runs in parallel |
| [out] | theAppendedRoots | collected root NodeIds for non-container shapes |
| [in] | theOptions | optional post-pass controls |
- Returns
- build status indicating success, warnings, or failure
◆ Perform()
Build backend incidence storage from a TopoDS_Shape.
- Parameters
-
| [out] | theGraph | graph whose storage to populate (cleared first) |
| [in] | theShape | root shape |
| [in] | theParallel | if true, face-level extraction runs in parallel |
| [in] | theOptions | optional post-pass controls |
- Returns
- build status indicating success, warnings, or failure
The documentation for this class was generated from the following file: