Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Data Structures | Static Public Member Functions
BRepGraphInc_Reconstruct Class Reference

Backend reconstruction helpers over incidence-table storage. More...

#include <BRepGraphInc_Reconstruct.hxx>

Data Structures

struct  Cache
 Per-Kind dense vector cache for O(1) shape lookup by entity index. Replaces NCollection_DataMap to eliminate hash/equality overhead. More...
 

Static Public Member Functions

static TopoDS_Shape Node (const BRepGraphInc_Storage &theStorage, const BRepGraph_NodeId theNode, const BRepGraph_LayerParam *theParams=nullptr, const BRepGraph_LayerRegularity *theRegularities=nullptr)
 Reconstruct a TopoDS_Shape from an entity node. Creates a local cache internally; shared vertices/edges are not reused across calls.
 
static TopoDS_Shape Node (const BRepGraphInc_Storage &theStorage, const BRepGraph_NodeId theNode, Cache &theCache, const BRepGraph_LayerParam *theParams=nullptr, const BRepGraph_LayerRegularity *theRegularities=nullptr)
 Reconstruct a TopoDS_Shape with a shared cache for sub-shape reuse. Vertices and edges already in theCache are returned directly.
 
static TopoDS_Shape FaceWithCache (const BRepGraphInc_Storage &theStorage, const BRepGraph_FaceId theFaceId, Cache &theCache, const BRepGraph_LayerParam *theParams=nullptr, const BRepGraph_LayerRegularity *theRegularities=nullptr)
 Reconstruct a face with shared edge/vertex cache for multi-face contexts.
 

Detailed Description

Backend reconstruction helpers over incidence-table storage.

Converts BRepGraphInc_Storage entity data back into TopoDS shapes. This class is part of the BRepGraphInc backend; external callers should prefer BRepGraph::Shapes() so reconstruction stays behind the facade. Supports single-node and cached multi-face reconstruction with shared edge/vertex reuse via the Cache.

Member Function Documentation

◆ FaceWithCache()

static TopoDS_Shape BRepGraphInc_Reconstruct::FaceWithCache ( const BRepGraphInc_Storage & theStorage,
const BRepGraph_FaceId theFaceId,
Cache & theCache,
const BRepGraph_LayerParam * theParams = nullptr,
const BRepGraph_LayerRegularity * theRegularities = nullptr )
static

Reconstruct a face with shared edge/vertex cache for multi-face contexts.

Parameters
[in]theStorageincidence storage
[in]theFaceIdface entity id
[in,out]theCacheshared cache for edge and vertex shapes
Returns
reconstructed face shape

◆ Node() [1/2]

static TopoDS_Shape BRepGraphInc_Reconstruct::Node ( const BRepGraphInc_Storage & theStorage,
const BRepGraph_NodeId theNode,
Cache & theCache,
const BRepGraph_LayerParam * theParams = nullptr,
const BRepGraph_LayerRegularity * theRegularities = nullptr )
static

Reconstruct a TopoDS_Shape with a shared cache for sub-shape reuse. Vertices and edges already in theCache are returned directly.

Parameters
[in]theStorageincidence storage
[in]theNodeentity node id
[in,out]theCacheshared cache for vertex/edge/face shapes
Returns
reconstructed shape

◆ Node() [2/2]

static TopoDS_Shape BRepGraphInc_Reconstruct::Node ( const BRepGraphInc_Storage & theStorage,
const BRepGraph_NodeId theNode,
const BRepGraph_LayerParam * theParams = nullptr,
const BRepGraph_LayerRegularity * theRegularities = nullptr )
static

Reconstruct a TopoDS_Shape from an entity node. Creates a local cache internally; shared vertices/edges are not reused across calls.

Parameters
[in]theStorageincidence storage
[in]theNodeentity node id
Returns
reconstructed shape

The documentation for this class was generated from the following file: