![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Structural invariant checker for BRepGraph. More...
#include <BRepGraph_Validate.hxx>
Data Structures | |
| struct | Issue |
| A single structural issue found in the graph. More... | |
| struct | Options |
| Validation options. More... | |
| struct | Result |
| Aggregated validation result. More... | |
Public Types | |
| enum class | Severity { Warning , Error } |
| Severity level for reported issues. More... | |
| enum class | Mode { Lightweight , Audit } |
| Validation mode controlling check depth/performance trade-off. More... | |
Static Public Member Functions | |
| static Result | Perform (const BRepGraph &theGraph) |
| Run default lightweight structural checks on a built graph. Uses Mode::Lightweight; for full structural audit use Perform(theGraph, Mode::Audit). | |
| static Result | Perform (const BRepGraph &theGraph, const Mode theMode) |
| Run structural checks on a built graph with explicit mode. | |
| static Result | Perform (const BRepGraph &theGraph, const Options &theOptions) |
| Run structural checks on a built graph with explicit options. | |
Structural invariant checker for BRepGraph.
Read-only algorithm that verifies the graph's internal consistency: cross-reference bounds, reverse index symmetry, incidence ref consistency, geometry reference validity, removed-node isolation, and wire connectivity.
Distinct from BRepGraphCheck (geometric shape validity). This class checks the graph data structure itself.
| Check | Lightweight | Audit |
|---|---|---|
| Active entity count boundary | YES | YES |
| Cross-reference bounds | - | YES |
| Reverse-index consistency | - | YES |
| Face-count cache consistency | - | YES |
| Incidence ref consistency | - | YES |
| Geometry representation refs | - | YES |
| Removed-node isolation | - | YES |
| Wire edge connectivity | - | YES |
| Entity ID positional integrity | - | YES |
| UID round-trip integrity | - | YES |
| Assembly DAG cycle detection | - | YES |
| Mode | What it checks | Cost | Recommended use |
|---|---|---|---|
Lightweight | Active entity count boundary only | Low | Hot-path release builds when the |
| graph structure is already trusted | Audit | Full structural audit from cross-reference |
bounds through assembly DAG cycle detection | Higher | Default validation mode for production pipelines, test gates, and API-boundary verification |
For production pipelines, prefer Mode::Audit; Mode::Lightweight is intended for hot-path release builds where the graph structure is already trusted.
|
strong |
Run default lightweight structural checks on a built graph. Uses Mode::Lightweight; for full structural audit use Perform(theGraph, Mode::Audit).
| [in] | theGraph | graph to validate (const, read-only) |
Run structural checks on a built graph with explicit mode.
| [in] | theGraph | graph to validate (const, read-only) |
| [in] | theMode | validation mode |
|
static |
Run structural checks on a built graph with explicit options.
| [in] | theGraph | graph to validate (const, read-only) |
| [in] | theOptions | validation profile/options |