OCCT3D About OCCT
Open CASCADE Technology Reference Manual 8.0.1
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | 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...
 

Public Member Functions

 BRepGraphInc_Reconstruct ()=delete
 

Static Public Member Functions

static TopoDS_Shape Node (BRepGraph &theGraph, const BRepGraph_NodeId theNode)
 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 (BRepGraph &theGraph, const BRepGraph_NodeId theNode, Cache &theCache)
 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 (BRepGraph &theGraph, const BRepGraph_FaceId theFaceId, Cache &theCache)
 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.

Constructor & Destructor Documentation

◆ BRepGraphInc_Reconstruct()

BRepGraphInc_Reconstruct::BRepGraphInc_Reconstruct ( )
delete

Member Function Documentation

◆ FaceWithCache()

static TopoDS_Shape BRepGraphInc_Reconstruct::FaceWithCache ( BRepGraph & theGraph,
const BRepGraph_FaceId theFaceId,
Cache & theCache )
static

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

Parameters
[in]theGraphgraph owning the storage and caches
[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 ( BRepGraph & theGraph,
const BRepGraph_NodeId theNode )
static

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

Parameters
[in]theGraphgraph owning the storage and caches
[in]theNodeentity node id
Returns
reconstructed shape

◆ Node() [2/2]

static TopoDS_Shape BRepGraphInc_Reconstruct::Node ( BRepGraph & theGraph,
const BRepGraph_NodeId theNode,
Cache & theCache )
static

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

Parameters
[in]theGraphgraph owning the storage and caches
[in]theNodeentity node id
[in,out]theCacheshared cache for vertex/edge/face shapes
Returns
reconstructed shape

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