Inventor node defining a mesh of type PbTriangleMesh2D. More...
#include <MeshViz/nodes/PoTriangleMesh2D.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
PoTriangleMesh2D () | |
const PbMesh * | getMesh () const |
void | setGeometry (int numPoints, const float *xPointsField, const float *yPointsField) |
void | setGeometry (int num_nodes, const float *xn, const float *yn, int num_cells, const int *cell_index) |
void | setGeometry (int num_nodes, const float *xn, const float *yn, const float *zn, int num_cells, const int *cell_index) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
PoSFTriangleMesh2D | mesh |
PoTriangleMesh2D::PoTriangleMesh2D | ( | ) |
Constructor.
static SoType PoTriangleMesh2D::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoMeshProperty.
const PbMesh* PoTriangleMesh2D::getMesh | ( | ) | const [inline, virtual] |
Gets the instance of the class PbTriangleMesh2D contained by the field mesh.
Implements PoMeshProperty.
virtual SoType PoTriangleMesh2D::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoMeshProperty.
void PoTriangleMesh2D::setGeometry | ( | int | num_nodes, | |
const float * | xn, | |||
const float * | yn, | |||
const float * | zn, | |||
int | num_cells, | |||
const int * | cell_index | |||
) | [inline] |
Convenience method to change the geometry of the mesh.
Defines a 3D geometry. See also PbTriangleMesh2D::setGeometry().
void PoTriangleMesh2D::setGeometry | ( | int | num_nodes, | |
const float * | xn, | |||
const float * | yn, | |||
int | num_cells, | |||
const int * | cell_index | |||
) | [inline] |
Convenience method to change the geometry of the mesh.
Defines a 2D geometry. See also PbTriangleMesh2D::setGeometry().
void PoTriangleMesh2D::setGeometry | ( | int | numPoints, | |
const float * | xPointsField, | |||
const float * | yPointsField | |||
) | [inline] |
Convenience method to set a new 2D geometry from a points field.
The triangulation is realized by the DELAUNAY method. See also PbTriangleMesh2D::setGeometry().
Field containing a mesh of type PbTriangleMesh2D.