Class to initialize the MeshViz Mesh Extraction module. More...
#include <MeshVizXLM/MiMeshViz.h>
Static Public Member Functions | |
static void | init (int numThreads=0) |
static void | finish () |
static const char * | getProductName () |
static const char * | getVersion () |
static bool | isInitialized () |
This class is used to initialize and finish the Mesh Extraction module. The init() method must be called before using any other Mesh Extraction classes.
This class is provided for stand-alone use of Mesh Extraction (separate from Open Inventor). If using MeshViz Data Mapping, it is not necessary to explicitly initalize Mesh Extraction because this is done automatically by the MoMeshViz class.
static void MiMeshViz::finish | ( | ) | [static] |
Finishes all classes of MeshViz extraction.
This function should be called after all Mesh Extraction objects have been destroyed, to ensure that any static memory allocations are freed.
static const char* MiMeshViz::getProductName | ( | ) | [static] |
Returns a character string identifying the name of the extension.
static const char* MiMeshViz::getVersion | ( | ) | [static] |
Returns a character string identifying the version of extension.
static void MiMeshViz::init | ( | int | numThreads = 0 |
) | [static] |
Initializes all Mesh Extraction classes.
This function must be called before any other Mesh Extraction class may be constructed or used.
numThreads | is the number of threads allocated to the extractors with multi-threading enabled (see for instance MiSkinExtractUnstructured::getNewInstance(mesh,parallel)). If numThreads is not 1, multiple threads can be used during every extraction algorithm. In that case, all the methods of the geometry and topology interfaces must be thread-safe as they can be called concurrently. For instance, for unstructured mesh, pay particular attention to the implementation of the methods getCoord, getCell and the methods that implement the MiCell interface. Default value is 0 which allocates the maximum number of threads available. Negative values allocate the maximum number of threads available decreased by the given number. For instance, value -2 allocates the maximum number of threads available minus 2. |
static bool MiMeshViz::isInitialized | ( | ) | [static] |
Returns true if MeshViz XLM is initialized.