Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
BRepGraph_MeshCacheStorage Class Reference

Storage backend for cached mesh data. More...

#include <BRepGraph_MeshCache.hxx>

Public Member Functions

bool HasFaceMesh (const BRepGraph_FaceId theFace) const
 Check if a face has a cached mesh entry (StoredOwnGen != 0).
 
const BRepGraph_MeshCache::FaceMeshEntryFindFaceMesh (const BRepGraph_FaceId theFace) const
 Find face mesh entry, or nullptr if absent.
 
BRepGraph_MeshCache::FaceMeshEntryChangeFaceMesh (const BRepGraph_FaceId theFace)
 Get or create a face mesh entry. Creates with default values if absent.
 
void ClearFaceMesh (const BRepGraph_FaceId theFace)
 Clear the face mesh entry (reset to absent).
 
bool HasCoEdgeMesh (const BRepGraph_CoEdgeId theCoEdge) const
 Check if a coedge has a cached mesh entry.
 
const BRepGraph_MeshCache::CoEdgeMeshEntryFindCoEdgeMesh (const BRepGraph_CoEdgeId theCoEdge) const
 Find coedge mesh entry, or nullptr if absent.
 
BRepGraph_MeshCache::CoEdgeMeshEntryChangeCoEdgeMesh (const BRepGraph_CoEdgeId theCoEdge)
 Get or create a coedge mesh entry.
 
void ClearCoEdgeMesh (const BRepGraph_CoEdgeId theCoEdge)
 Clear the coedge mesh entry.
 
bool HasEdgeMesh (const BRepGraph_EdgeId theEdge) const
 Check if an edge has a cached mesh entry.
 
const BRepGraph_MeshCache::EdgeMeshEntryFindEdgeMesh (const BRepGraph_EdgeId theEdge) const
 Find edge mesh entry, or nullptr if absent.
 
BRepGraph_MeshCache::EdgeMeshEntryChangeEdgeMesh (const BRepGraph_EdgeId theEdge)
 Get or create an edge mesh entry.
 
void ClearEdgeMesh (const BRepGraph_EdgeId theEdge)
 Clear the edge mesh entry.
 
void Clear ()
 Clear all cached mesh data.
 
void OnCompact (const NCollection_DataMap< BRepGraph_NodeId, BRepGraph_NodeId > &theNodeRemapMap)
 Remap cache entries after compaction.
 

Detailed Description

Storage backend for cached mesh data.

Dense vectors indexed by per-kind entity index (same pattern as DefStore). Entries with StoredOwnGen == 0 are absent (no cached mesh data). Thread safety: parallel writes to different indices are safe (no contention).

Member Function Documentation

◆ ChangeCoEdgeMesh()

BRepGraph_MeshCache::CoEdgeMeshEntry & BRepGraph_MeshCacheStorage::ChangeCoEdgeMesh ( const BRepGraph_CoEdgeId theCoEdge)

Get or create a coedge mesh entry.

◆ ChangeEdgeMesh()

BRepGraph_MeshCache::EdgeMeshEntry & BRepGraph_MeshCacheStorage::ChangeEdgeMesh ( const BRepGraph_EdgeId theEdge)

Get or create an edge mesh entry.

◆ ChangeFaceMesh()

BRepGraph_MeshCache::FaceMeshEntry & BRepGraph_MeshCacheStorage::ChangeFaceMesh ( const BRepGraph_FaceId theFace)

Get or create a face mesh entry. Creates with default values if absent.

◆ Clear()

void BRepGraph_MeshCacheStorage::Clear ( )

Clear all cached mesh data.

◆ ClearCoEdgeMesh()

void BRepGraph_MeshCacheStorage::ClearCoEdgeMesh ( const BRepGraph_CoEdgeId theCoEdge)

Clear the coedge mesh entry.

◆ ClearEdgeMesh()

void BRepGraph_MeshCacheStorage::ClearEdgeMesh ( const BRepGraph_EdgeId theEdge)

Clear the edge mesh entry.

◆ ClearFaceMesh()

void BRepGraph_MeshCacheStorage::ClearFaceMesh ( const BRepGraph_FaceId theFace)

Clear the face mesh entry (reset to absent).

◆ FindCoEdgeMesh()

const BRepGraph_MeshCache::CoEdgeMeshEntry * BRepGraph_MeshCacheStorage::FindCoEdgeMesh ( const BRepGraph_CoEdgeId theCoEdge) const

Find coedge mesh entry, or nullptr if absent.

◆ FindEdgeMesh()

const BRepGraph_MeshCache::EdgeMeshEntry * BRepGraph_MeshCacheStorage::FindEdgeMesh ( const BRepGraph_EdgeId theEdge) const

Find edge mesh entry, or nullptr if absent.

◆ FindFaceMesh()

const BRepGraph_MeshCache::FaceMeshEntry * BRepGraph_MeshCacheStorage::FindFaceMesh ( const BRepGraph_FaceId theFace) const

Find face mesh entry, or nullptr if absent.

◆ HasCoEdgeMesh()

bool BRepGraph_MeshCacheStorage::HasCoEdgeMesh ( const BRepGraph_CoEdgeId theCoEdge) const

Check if a coedge has a cached mesh entry.

◆ HasEdgeMesh()

bool BRepGraph_MeshCacheStorage::HasEdgeMesh ( const BRepGraph_EdgeId theEdge) const

Check if an edge has a cached mesh entry.

◆ HasFaceMesh()

bool BRepGraph_MeshCacheStorage::HasFaceMesh ( const BRepGraph_FaceId theFace) const

Check if a face has a cached mesh entry (StoredOwnGen != 0).

◆ OnCompact()

void BRepGraph_MeshCacheStorage::OnCompact ( const NCollection_DataMap< BRepGraph_NodeId, BRepGraph_NodeId > & theNodeRemapMap)

Remap cache entries after compaction.

Parameters
[in]theNodeRemapMapold NodeId -> new NodeId mapping

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