Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

More...

#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.
More...
 
void SetRelative (const Standard_Boolean theFlag)
 
Standard_Boolean Relative () const
 
virtual void Perform ()
 Compute triangulation for set shape.
More...
 
void Update (const TopoDS_Shape &S)
 Builds the incremental mesh of the shape
More...
 
Standard_Boolean IsModified () const
 
Standard_Integer GetStatusFlags () const
 
void SetParallel (const Standard_Boolean theInParallel)
 Request algorithm to launch in multiple threads to improve performance.
More...
 
Standard_Boolean IsParallel () const
 Returns the multi-threading usage flag.
More...
 
- Public Member Functions inherited from BRepMesh_DiscretRoot
void SetDeflection (const Standard_Real theDeflection)
 Setup linear deflection.
More...
 
virtual ~BRepMesh_DiscretRoot ()
 
Standard_Real Deflection () const
 Returns linear deflection.
More...
 
void SetAngle (const Standard_Real theAngle)
 Setup angular deflection.
More...
 
Standard_Real Angle () const
 Returns angular deflection.
More...
 
void SetShape (const TopoDS_Shape &theShape)
 Set the shape to triangulate.
More...
 
const TopoDS_ShapeShape () const
 
Standard_Boolean IsDone () const
 Returns true if triangualtion was performed and has success.
More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual void ShallowDump (Standard_OStream &) const
 
virtual const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

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.
More...
 
static Standard_Boolean IsParallelDefault ()
 Returns multi-threading usage flag set by default in
Discret() static method (thus applied only to Mesh Factories).
More...
 
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).
More...
 

Protected Member Functions

virtual void Init ()
 
- Protected Member Functions inherited from BRepMesh_DiscretRoot
 BRepMesh_DiscretRoot ()
 
void SetDone ()
 
void SetNotDone ()
 

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
 
- Protected Attributes inherited from BRepMesh_DiscretRoot
Standard_Real myDeflection
 
Standard_Real myAngle
 
TopoDS_Shape myShape
 
Standard_Boolean myIsDone
 

Detailed Description

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

Constructor & Destructor Documentation

BRepMesh_IncrementalMesh::BRepMesh_IncrementalMesh ( )
virtual BRepMesh_IncrementalMesh::~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.

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

Plugin interface for the Mesh Factories.

Standard_Integer BRepMesh_IncrementalMesh::GetStatusFlags ( ) const
virtual void BRepMesh_IncrementalMesh::Init ( )
protectedvirtual

Reimplemented from BRepMesh_DiscretRoot.

Standard_Boolean BRepMesh_IncrementalMesh::IsModified ( ) const
Standard_Boolean BRepMesh_IncrementalMesh::IsParallel ( ) const

Returns the multi-threading usage flag.

static Standard_Boolean BRepMesh_IncrementalMesh::IsParallelDefault ( )
static

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

virtual void BRepMesh_IncrementalMesh::Perform ( )
virtual

Compute triangulation for set shape.

Implements BRepMesh_DiscretRoot.

Standard_Boolean BRepMesh_IncrementalMesh::Relative ( ) const
void BRepMesh_IncrementalMesh::SetParallel ( const Standard_Boolean  theInParallel)

Request algorithm to launch in multiple threads to improve performance.

static void BRepMesh_IncrementalMesh::SetParallelDefault ( const Standard_Boolean  theInParallel)
static

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

void BRepMesh_IncrementalMesh::SetRelative ( const Standard_Boolean  theFlag)
void BRepMesh_IncrementalMesh::Update ( const TopoDS_Shape S)

Builds the incremental mesh of the shape

Field Documentation

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

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