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 |
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) | |
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. It can also 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:
| void cadex::ModelAlgo::MeshGenerator::Generate | ( | const ModelData::Body & | theBody, |
| bool | theEnforceGeneration = true ) const |
Generates a mesh for the body.
| theEnforceGeneration | if true, regenerates the mesh even if it already exists. |
| void cadex::ModelAlgo::MeshGenerator::Generate | ( | const ModelData::Model & | theModel, |
| bool | theEnforceGeneration = true ) const |
Generates a mesh for the model.
| theEnforceGeneration | if true, regenerates the mesh even if it already exists. |
| void cadex::ModelAlgo::MeshGenerator::Generate | ( | const ModelData::Part & | thePart, |
| bool | theEnforceGeneration = true ) const |
Generates a mesh for the part.
| theEnforceGeneration | if true, regenerates the mesh even if it already exists. |
| ModelData::MeshShape cadex::ModelAlgo::MeshGenerator::Generate | ( | const ModelData::Shape & | theShape, |
| bool | theEnforceGeneration = true ) const |
Generates a mesh for the shape.
| theEnforceGeneration | if true, regenerates the mesh even if it already exists. |