Hide menu
Loading...
Searching...
No Matches
cadex::ModelAlgo::MeshGenerator Class Reference

Generates a polygonal mesh for a B-Rep body. More...

Inheritance diagram for cadex::ModelAlgo::MeshGenerator:
cadex::BaseObject

Public Member Functions

 MeshGenerator (const MeshGeneratorParameters &theParameters)
 
const MeshGeneratorParametersParameters ()
 
void SetParameters (const MeshGeneratorParameters &theParameters)
 
void Generate (const ModelData::Model &theModel, bool theEnforceGeneration=true) const
 
void Generate (const ModelData::Part &thePart, bool theEnforceGeneration=true) const
 
void Generate (const ModelData::Body &theBody, bool theEnforceGeneration=true) const
 
ModelData::MeshShape Generate (const ModelData::Shape &theShape, bool theEnforceGeneration=true) const
 
void SetProgressStatus (ProgressStatus &theStatus) const
 
const cadex::ProgressStatusProgressStatus () const
 
- Public Member Functions inherited from cadex::BaseObject
size_t Id () const
 Return unique identifier of public object.
 
internal::BaseObjectImpl * Impl () const
 
bool IsNull () const
 
 operator bool () const
 
template<typename T >
bool IsOfType () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Generates a polygonal mesh for a B-Rep body.

The mesh generator can operate on an entire model, a subtree of a model element, or a particular B-Rep body/shape and can generate only a visualization mesh.

The following example demonstrates how to use the mesh generator.

Compute tessellation for all B-Rep bodies in the model using the mesh generator:

ModelData::Model aModel = ...;
MeshGenerator aMeshGenerator;
aMeshGenerator.Generate (aModel);
Generates a polygonal mesh for a B-Rep body.
Definition MeshGenerator.hxx:39
Provides MTK data model.
Definition Model.hxx:40
See also
Mesh Generation.
Examples
meshing/mesh_generation/Program.cs, meshing/mesh_generation/main.cxx, and utilities/progress_bar/main.cxx.