Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
BRepGraph::MeshView Class Reference

Read/write view over mesh data. More...

#include <BRepGraph_MeshView.hxx>

Data Structures

class  CacheView
 Cache reads. Each accessor returns data only if a fresh cache entry exists for the given entity (matched against its current OwnGen). More...
class  EditorView
 Cache mutation surface. Mutates the BRepGraphMesh cache only - does not touch persistent definition data. Persistent rep creation/edit lives on BRepGraph::Editor().Edges(), BRepGraph::Editor().CoEdges(), BRepGraph::Editor().Faces(). More...
class  EffectiveView
 Resolves mesh data by checking the cache first and the persistent (def-resident) source second. Callers that do not care which source supplies the data go through this view; callers that do care use Cache() or Persistent() directly. More...
class  PersistentView
 Persistent reads. Resolves data through the rep id stored on the entity's definition (FaceDef / EdgeDef / CoEdgeDef). Independent of the cache. More...
class  PolyOps
 Polygonal and triangulation count queries. More...

Public Member Functions

const CacheView & Cache () const
 Cache-only reads.
const PersistentView & Persistent () const
 Persistent (definition-resident) reads.
const EffectiveView & Effective () const
 Effective reads - cache first, persistent fallback. Use when source is irrelevant.
EditorView & Editor ()
 Cache mutations.
const PolyOps & Poly () const
 Polygon/triangulation count queries.

Detailed Description

Read/write view over mesh data.

Splits mesh access into three explicit sub-views:

  • Cache() - reads from the BRepGraphMesh cache only (algorithm-derived, freshness-checked against the entity's OwnGen).
  • Persistent() - reads from definition-resident mesh (FaceDef.TriangulationRepId, EdgeDef.Polygon3DRepId, CoEdgeDef.Polygon2DRepId, CoEdgeDef.PolygonOnTriRepId).
  • Editor() - cache mutations (append/clear). Persistent rep creation lives on BRepGraph::Editor().Edges(), BRepGraph::Editor().CoEdges(), BRepGraph::Editor().Faces() since reps back the topology defs.
  • Poly() - mesh element count queries (shared by all paths).

There is no fallback path that mixes cache and persistent - callers pick the source explicitly.

Obtained via BRepGraph::Mesh() (const) or BRepGraph::Mesh() (non-const for Editor).

Member Function Documentation

◆ Cache()

const CacheView & BRepGraph::MeshView::Cache ( ) const
inlinenodiscard

Cache-only reads.

◆ Editor()

EditorView & BRepGraph::MeshView::Editor ( )
inlinenodiscard

Cache mutations.

◆ Effective()

const EffectiveView & BRepGraph::MeshView::Effective ( ) const
inlinenodiscard

Effective reads - cache first, persistent fallback. Use when source is irrelevant.

◆ Persistent()

const PersistentView & BRepGraph::MeshView::Persistent ( ) const
inlinenodiscard

Persistent (definition-resident) reads.

◆ Poly()

const PolyOps & BRepGraph::MeshView::Poly ( ) const
inlinenodiscard

Polygon/triangulation count queries.


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