Open CASCADE Technology
7.2.0
|
This class intended to setup / retrieve default triangulation algorithm.
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 | |
const TColStd_MapOfAsciiString & | Names () const |
Returns the list of registered meshing algorithms. More... | |
Standard_Boolean | SetDefaultName (const TCollection_AsciiString &theName) |
Setup meshing algorithm by name. Returns TRUE if requested tool is available. On fail Factory will continue to use previous algo. More... | |
const TCollection_AsciiString & | DefaultName () const |
Returns name for current meshing algorithm. More... | |
Standard_Boolean | SetFunctionName (const TCollection_AsciiString &theFuncName) |
Advanced function. Changes function name to retrieve from plugin. Returns TRUE if requested tool is available. On fail Factory will continue to use previous algo. More... | |
const TCollection_AsciiString & | FunctionName () const |
Returns function name that should be exported by plugin. More... | |
BRepMesh_FactoryError | ErrorStatus () const |
Returns error status for last meshing algorithm switch. More... | |
Standard_Boolean | SetDefault (const TCollection_AsciiString &theName, const TCollection_AsciiString &theFuncName="DISCRETALGO") |
Setup meshing algorithm that should be created by this Factory. Returns TRUE if requested tool is available. On fail Factory will continue to use previous algo. Call ::ErrorStatus() method to retrieve fault reason. More... | |
Handle< BRepMesh_DiscretRoot > | Discret (const TopoDS_Shape &theShape, const Standard_Real theLinDeflection, const Standard_Real theAngDeflection) |
Returns triangulation algorithm instance. More... | |
Static Public Member Functions | |
static BRepMesh_DiscretFactory & | Get () |
Returns the global factory instance. More... | |
Protected Member Functions | |
BRepMesh_DiscretFactory () | |
Constructor. More... | |
virtual | ~BRepMesh_DiscretFactory () |
Destructor. More... | |
void | clear () |
Clears factory data. More... | |
This class intended to setup / retrieve default triangulation algorithm.
Use BRepMesh_DiscretFactory::Get() static method to retrieve global Factory instance.
Use BRepMesh_DiscretFactory::Discret() method to retrieve meshing tool.
|
protected |
Constructor.
|
protectedvirtual |
Destructor.
|
protected |
Clears factory data.
|
inline |
Returns name for current meshing algorithm.
Handle< BRepMesh_DiscretRoot > BRepMesh_DiscretFactory::Discret | ( | const TopoDS_Shape & | theShape, |
const Standard_Real | theLinDeflection, | ||
const Standard_Real | theAngDeflection | ||
) |
Returns triangulation algorithm instance.
theShape | shape to be meshed. |
theLinDeflection | linear deflection to be used for meshing. |
theAngDeflection | angular deflection to be used for meshing. |
|
inline |
Returns error status for last meshing algorithm switch.
|
inline |
Returns function name that should be exported by plugin.
|
static |
Returns the global factory instance.
|
inline |
Returns the list of registered meshing algorithms.
Standard_Boolean BRepMesh_DiscretFactory::SetDefault | ( | const TCollection_AsciiString & | theName, |
const TCollection_AsciiString & | theFuncName = "DISCRETALGO" |
||
) |
Setup meshing algorithm that should be created by this Factory.
Returns TRUE if requested tool is available.
On fail Factory will continue to use previous algo.
Call ::ErrorStatus() method to retrieve fault reason.
|
inline |
Setup meshing algorithm by name.
Returns TRUE if requested tool is available.
On fail Factory will continue to use previous algo.
|
inline |
Advanced function. Changes function name to retrieve from plugin.
Returns TRUE if requested tool is available.
On fail Factory will continue to use previous algo.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |