Generates a polygonal mesh for a B-Rep body. More...
Public Member Functions | |
MeshGenerator (const MeshGeneratorParameters &theParameters) | |
const MeshGeneratorParameters & | Parameters () |
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::ProgressStatus & | ProgressStatus () const |
![]() | |
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 | |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
![]() | |
BaseObject (const ImplType &theImpl) | |
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: