![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Graph compaction algorithm that reclaims removed node slots. More...
#include <BRepGraph_Compact.hxx>
Data Structures | |
| struct | Options |
| Configuration for compaction. More... | |
| struct | Result |
| Result counters for diagnostics. More... | |
Static Public Member Functions | |
| static Result | Perform (BRepGraph &theGraph) |
| Run compaction with default options. | |
| static Result | Perform (BRepGraph &theGraph, const Options &theOptions) |
| Run compaction with specified options. | |
Graph compaction algorithm that reclaims removed node slots.
After deduplication or other operations that mark nodes as removed, this algorithm rebuilds the graph with dense index arrays, eliminating all removed nodes and reassigning indices to be contiguous.
Strategy: rebuild-and-swap. A fresh BRepGraph is constructed from non-removed nodes with remapped indices, then move-assigned into the input graph.
Run compaction with default options.
| [in,out] | theGraph | graph to compact |
|
static |
Run compaction with specified options.
| [in,out] | theGraph | graph to compact |
| [in] | theOptions | compaction configuration |