Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
BRepMesh_DiscretFactory Class Reference

Factory for retrieving triangulation algorithms. Use BRepMesh_DiscretFactory::Get() static method to retrieve global Factory instance. Use BRepMesh_DiscretFactory::Discret() method to retrieve meshing tool. More...

#include <BRepMesh_DiscretFactory.hxx>

Public Member Functions

bool SetDefaultName (const TCollection_AsciiString &theName)
 Setup meshing algorithm by name. Returns TRUE if requested algorithm is available. On fail Factory will continue to use previous algorithm.
 
const TCollection_AsciiStringDefaultName () const
 Returns name of current meshing algorithm.
 
occ::handle< BRepMesh_DiscretRootDiscret (const TopoDS_Shape &theShape, double theLinDeflection, double theAngDeflection)
 Returns triangulation algorithm instance.
 

Static Public Member Functions

static BRepMesh_DiscretFactoryGet ()
 Returns the global factory instance.
 

Protected Member Functions

 BRepMesh_DiscretFactory ()
 Constructor.
 

Protected Attributes

TCollection_AsciiString myDefaultName
 

Detailed Description

Factory for retrieving triangulation algorithms. Use BRepMesh_DiscretFactory::Get() static method to retrieve global Factory instance. Use BRepMesh_DiscretFactory::Discret() method to retrieve meshing tool.

This class delegates to BRepMesh_DiscretAlgoFactory registry for algorithm creation.

See also
BRepMesh_DiscretAlgoFactory

Constructor & Destructor Documentation

◆ BRepMesh_DiscretFactory()

BRepMesh_DiscretFactory::BRepMesh_DiscretFactory ( )
protected

Constructor.

Member Function Documentation

◆ DefaultName()

const TCollection_AsciiString & BRepMesh_DiscretFactory::DefaultName ( ) const
inline

Returns name of current meshing algorithm.

◆ Discret()

occ::handle< BRepMesh_DiscretRoot > BRepMesh_DiscretFactory::Discret ( const TopoDS_Shape & theShape,
double theLinDeflection,
double theAngDeflection )

Returns triangulation algorithm instance.

Parameters
[in]theShapeshape to be meshed
[in]theLinDeflectionlinear deflection to be used for meshing
[in]theAngDeflectionangular deflection to be used for meshing
Returns
new meshing algorithm instance, or NULL if no algorithm available

◆ Get()

static BRepMesh_DiscretFactory & BRepMesh_DiscretFactory::Get ( )
static

Returns the global factory instance.

◆ SetDefaultName()

bool BRepMesh_DiscretFactory::SetDefaultName ( const TCollection_AsciiString & theName)

Setup meshing algorithm by name. Returns TRUE if requested algorithm is available. On fail Factory will continue to use previous algorithm.

Parameters
[in]theNamename of the algorithm to use

Field Documentation

◆ myDefaultName

TCollection_AsciiString BRepMesh_DiscretFactory::myDefaultName
protected

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