Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
BRepMesh_IncrementalMesh Class Reference

Builds the mesh of a shape with respect of their
correctly triangulated parts

#include <BRepMesh_IncrementalMesh.hxx>

Inheritance diagram for BRepMesh_IncrementalMesh:
Inheritance graph
[legend]

Public Member Functions

 BRepMesh_IncrementalMesh ()
virtual ~BRepMesh_IncrementalMesh ()
 BRepMesh_IncrementalMesh (const TopoDS_Shape &S, const Standard_Real D, const Standard_Boolean Relatif=Standard_False, const Standard_Real Ang=0.5, const Standard_Boolean InParallel=Standard_False)
 If the boolean <Relatif> is True, the
deflection used for the polygonalisation of
each edge will be <D> * Size of Edge.
the deflection used for the faces will be the maximum
deflection of their edges.

void SetRelative (const Standard_Boolean theFlag)
Standard_Boolean Relative () const
virtual void Perform ()
 Compute triangulation for set shape.

void Update (const TopoDS_Shape &S)
 Builds the incremental mesh of the shape

Standard_Boolean IsModified () const
Standard_Integer GetStatusFlags () const
void SetParallel (const Standard_Boolean theInParallel)
 Request algorithm to launch in multiple threads to improve performance.

Standard_Boolean IsParallel () const
 Returns the multi-threading usage flag.

Static Public Member Functions

static Standard_Integer Discret (const TopoDS_Shape &theShape, const Standard_Real theDeflection, const Standard_Real theAngle, BRepMesh_PDiscretRoot &theAlgo)
 Plugin interface for the Mesh Factories.

static Standard_Boolean IsParallelDefault ()
 Returns multi-threading usage flag set by default in
Discret() static method (thus applied only to Mesh Factories).

static void SetParallelDefault (const Standard_Boolean theInParallel)
 Setup multi-threading usage flag set by default in
Discret() static method (thus applied only to Mesh Factories).

Protected Member Functions

virtual void Init ()

Protected Attributes

Standard_Boolean myRelative
Standard_Boolean myInParallel
TopTools_MapOfShape myMap
Handle_BRepMesh_FastDiscret myMesh
Standard_Boolean myModified
TopTools_DataMapOfShapeReal mymapedge
TopTools_IndexedDataMapOfShapeListOfShape myancestors
Standard_Real mydtotale
Bnd_Box myBox
Standard_Integer myStatus

Constructor & Destructor Documentation


Member Function Documentation

static Standard_Integer BRepMesh_IncrementalMesh::Discret ( const TopoDS_Shape theShape,
const Standard_Real  theDeflection,
const Standard_Real  theAngle,
BRepMesh_PDiscretRoot theAlgo 
) [static]
virtual void BRepMesh_IncrementalMesh::Init ( ) [protected, virtual]

Reimplemented from BRepMesh_DiscretRoot.

virtual void BRepMesh_IncrementalMesh::Perform ( ) [virtual]

Implements BRepMesh_DiscretRoot.


Field Documentation

Handle_BRepMesh_FastDiscret BRepMesh_IncrementalMesh::myMesh [protected]

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