Convert polyhedral 3D mesh to mixed volume mesh. More...
#include <MeshVizXLM/extractors/MiPolyhedralToMixVolumeExtract.h>
Public Member Functions | |
virtual | ~MiPolyhedralToMixVolumeExtract () |
virtual const MeXVolumeMeshUnstructured & | convert (const MiCellFilterI *cellFilter=NULL)=0 |
virtual const MeXScalardSetI & | extractScalarSet (const MiScalardSetI &inputSet)=0 |
virtual const MeXVec3dSetI & | extractVec3Set (const MiVec3dSetI &inputSet)=0 |
virtual const MeXVolumeMeshUnstructured & | getExtract () const =0 |
Static Public Member Functions | |
static MiPolyhedralToMixVolumeExtract * | getNewInstance (const MiVolumeMeshUnstructured &mesh, bool parallel=true) |
This conversion tool is another type of extractor which takes a polyhedral volume mesh as input and produces a mixed volume mesh made up of a combination of tetrahedrons and pyramids compatible with the marching cube algorithm.
The following example shows how to convert a polyhedral volume mesh to a mixed volume mesh:
MiPolyhedralToMixVolume* extract = MiPolyhedralToMixVolume::getNewInstance(mesh); const MeXVolumeMeshUnstructured tessMesh = extract->convert();
virtual MiPolyhedralToMixVolumeExtract::~MiPolyhedralToMixVolumeExtract | ( | ) | [inline, virtual] |
virtual const MeXVolumeMeshUnstructured& MiPolyhedralToMixVolumeExtract::convert | ( | const MiCellFilterI * | cellFilter = NULL |
) | [pure virtual] |
Builds the topology and geometry of the mixed volume mesh.
virtual const MeXScalardSetI& MiPolyhedralToMixVolumeExtract::extractScalarSet | ( | const MiScalardSetI & | inputSet | ) | [pure virtual] |
Extracts a scalar set from the original mesh. The scalars are mapped onto the current extracted mesh.
inputSet | The input scalar set defined on the original mesh. |
virtual const MeXVec3dSetI& MiPolyhedralToMixVolumeExtract::extractVec3Set | ( | const MiVec3dSetI & | inputSet | ) | [pure virtual] |
Extracts a vector set from the original mesh. The vectors are mapped onto the current extracted mesh.
inputSet | The input vector set defined on the original mesh. |
virtual const MeXVolumeMeshUnstructured& MiPolyhedralToMixVolumeExtract::getExtract | ( | ) | const [pure virtual] |
Returns the result of the extraction as a mesh.
static MiPolyhedralToMixVolumeExtract* MiPolyhedralToMixVolumeExtract::getNewInstance | ( | const MiVolumeMeshUnstructured & | mesh, | |
bool | parallel = true | |||
) | [static] |
Factory method returning a new instance of a class implementing this abstract class.
mesh | The input mesh | |
parallel | When true, tries to create an extract module using a parallel algorithm to speed up the extraction. |