Generates a polygonal mesh for a B-Rep body. More...
Public Member Functions | |
| MeshGenerator (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| MeshGenerator (cadex.ModelAlgo.MeshGeneratorParameters theParameters) | |
| cadex.ModelAlgo.MeshGeneratorParameters | Parameters () |
| void | SetParameters (cadex.ModelAlgo.MeshGeneratorParameters theParameters) |
| void | Generate (cadex.ModelData.Model theModel, bool theEnforceGeneration) |
| void | Generate (cadex.ModelData.Model theModel) |
| void | Generate (cadex.ModelData.Part thePart, bool theEnforceGeneration) |
| void | Generate (cadex.ModelData.Part thePart) |
| void | Generate (cadex.ModelData.Body theBody, bool theEnforceGeneration) |
| void | Generate (cadex.ModelData.Body theBody) |
| cadex.ModelData.MeshShape | Generate (cadex.ModelData.Shape theShape, bool theEnforceGeneration) |
| cadex.ModelData.MeshShape | Generate (cadex.ModelData.Shape theShape) |
| void | SetProgressStatus (cadex.ProgressStatus theStatus) |
| cadex.ProgressStatus | ProgressStatus () |
Public Member Functions inherited from cadex.BaseObject | |
| BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| void | Dispose () |
| bool | IsNull () |
| ulong | Id () |
| Return unique identifier of public object. | |
| bool | IsEqual (cadex.BaseObject theObj) |
| override int | GetHashCode () |
| override bool | Equals (System.Object o) |
Static Public Member Functions | |
| static cadex.ModelAlgo.MeshGenerator | Cast (cadex.BaseObject theBase) |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
Generates a polygonal mesh for a B-Rep body.
Computes a bounding box for theShape, takes its maximum dimension and multiplies by thePrec. If computation of bounding box fails, returns thePrec.
This method is called when a relative precision mode is used.
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:
|
inlineprotectedvirtual |
Reimplemented from cadex.BaseObject.
|
inline |
Generates a mesh for the body.
| theEnforceGeneration | if true, regenerates the mesh even if it already exists. |
|
inline |
Generates a mesh for the model.
| theEnforceGeneration | if true, regenerates the mesh even if it already exists. |
|
inline |
Generates a mesh for the part.
| theEnforceGeneration | if true, regenerates the mesh even if it already exists. |
|
inline |
Generates a mesh for the shape.
| theEnforceGeneration | if true, regenerates the mesh even if it already exists. |