Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
BRepGraph_Tool::Mesh Class Reference

Mesh cache writes and representation creation. More...

#include <BRepGraph_Tool.hxx>

Static Public Member Functions

static BRepGraph_TriangulationRepId CreateTriangulationRep (BRepGraph &theGraph, const occ::handle< Poly_Triangulation > &theTriangulation)
 Create a new TriangulationRep in storage.
 
static BRepGraph_Polygon3DRepId CreatePolygon3DRep (BRepGraph &theGraph, const occ::handle< Poly_Polygon3D > &thePolygon)
 Create a new Polygon3DRep in storage.
 
static BRepGraph_PolygonOnTriRepId CreatePolygonOnTriRep (BRepGraph &theGraph, const occ::handle< Poly_PolygonOnTriangulation > &thePolygon, const BRepGraph_TriangulationRepId theTriRepId)
 Create a new PolygonOnTriRep in storage.
 
static void AppendCachedTriangulation (BRepGraph &theGraph, const BRepGraph_FaceId theFace, const BRepGraph_TriangulationRepId theTriRepId)
 Append a triangulation rep to the face's cached mesh (multi-LOD support).
 
static void SetCachedActiveIndex (BRepGraph &theGraph, const BRepGraph_FaceId theFace, const int theActiveIndex)
 Set the active triangulation index in the face's cached mesh.
 
static void ClearFaceCache (BRepGraph &theGraph, const BRepGraph_FaceId theFace)
 Clear cached mesh for a face and its coedges.
 
static void SetCachedPolygon3D (BRepGraph &theGraph, const BRepGraph_EdgeId theEdge, const BRepGraph_Polygon3DRepId thePolyRepId)
 Set the polygon-3D rep in the edge's cached mesh.
 
static void ClearEdgeCache (BRepGraph &theGraph, const BRepGraph_EdgeId theEdge)
 Clear cached mesh for an edge.
 
static void AppendCachedPolygonOnTri (BRepGraph &theGraph, const BRepGraph_CoEdgeId theCoEdge, const BRepGraph_PolygonOnTriRepId thePolyRepId)
 Append a polygon-on-tri rep to the coedge's cached mesh (seam edge support).
 
static void SetCachedPolygon2D (BRepGraph &theGraph, const BRepGraph_CoEdgeId theCoEdge, const BRepGraph_Polygon2DRepId thePolyRepId)
 Set the polygon-2D rep in the coedge's cached mesh.
 

Detailed Description

Mesh cache writes and representation creation.

Static methods for creating mesh representations in storage and writing to the mesh cache. These do NOT trigger markModified() or mutation tracking – mesh data is derived, not model data.

Member Function Documentation

◆ AppendCachedPolygonOnTri()

static void BRepGraph_Tool::Mesh::AppendCachedPolygonOnTri ( BRepGraph & theGraph,
const BRepGraph_CoEdgeId theCoEdge,
const BRepGraph_PolygonOnTriRepId thePolyRepId )
static

Append a polygon-on-tri rep to the coedge's cached mesh (seam edge support).

◆ AppendCachedTriangulation()

static void BRepGraph_Tool::Mesh::AppendCachedTriangulation ( BRepGraph & theGraph,
const BRepGraph_FaceId theFace,
const BRepGraph_TriangulationRepId theTriRepId )
static

Append a triangulation rep to the face's cached mesh (multi-LOD support).

◆ ClearEdgeCache()

static void BRepGraph_Tool::Mesh::ClearEdgeCache ( BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge )
static

Clear cached mesh for an edge.

◆ ClearFaceCache()

static void BRepGraph_Tool::Mesh::ClearFaceCache ( BRepGraph & theGraph,
const BRepGraph_FaceId theFace )
static

Clear cached mesh for a face and its coedges.

◆ CreatePolygon3DRep()

static BRepGraph_Polygon3DRepId BRepGraph_Tool::Mesh::CreatePolygon3DRep ( BRepGraph & theGraph,
const occ::handle< Poly_Polygon3D > & thePolygon )
static

Create a new Polygon3DRep in storage.

Returns
typed identifier, or invalid if the handle is null

◆ CreatePolygonOnTriRep()

static BRepGraph_PolygonOnTriRepId BRepGraph_Tool::Mesh::CreatePolygonOnTriRep ( BRepGraph & theGraph,
const occ::handle< Poly_PolygonOnTriangulation > & thePolygon,
const BRepGraph_TriangulationRepId theTriRepId )
static

Create a new PolygonOnTriRep in storage.

Returns
typed identifier, or invalid if polygon is null or theTriRepId is invalid

◆ CreateTriangulationRep()

static BRepGraph_TriangulationRepId BRepGraph_Tool::Mesh::CreateTriangulationRep ( BRepGraph & theGraph,
const occ::handle< Poly_Triangulation > & theTriangulation )
static

Create a new TriangulationRep in storage.

Returns
typed identifier, or invalid if the handle is null

◆ SetCachedActiveIndex()

static void BRepGraph_Tool::Mesh::SetCachedActiveIndex ( BRepGraph & theGraph,
const BRepGraph_FaceId theFace,
const int theActiveIndex )
static

Set the active triangulation index in the face's cached mesh.

◆ SetCachedPolygon2D()

static void BRepGraph_Tool::Mesh::SetCachedPolygon2D ( BRepGraph & theGraph,
const BRepGraph_CoEdgeId theCoEdge,
const BRepGraph_Polygon2DRepId thePolyRepId )
static

Set the polygon-2D rep in the coedge's cached mesh.

◆ SetCachedPolygon3D()

static void BRepGraph_Tool::Mesh::SetCachedPolygon3D ( BRepGraph & theGraph,
const BRepGraph_EdgeId theEdge,
const BRepGraph_Polygon3DRepId thePolyRepId )
static

Set the polygon-3D rep in the edge's cached mesh.


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