Filled representation of surface mesh. More...
#include <MeshViz/3Ddata/PoMeshFilled.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoMeshFilled () | |
virtual void | rebuild () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFBool | useOverallNormal |
This class represents a 3D surface by filling each cell of the current mesh. See PoMesh for more explanation about the current mesh.
Even if the current mesh has a 2D geometry, a 3D surface can be obtained if the field PoMesh2D::zValuesIndex is defined (i.e. >= 0) and the corresponding scalar data set defining the Z values exists in the mesh.
If the current mesh has a 3D geometry, its Z coordinates are used as long as the field PoMesh2D::zValuesIndex is undefined (i.e. <0).
If the field PoMesh::valuesIndex is not defined (or if coloringType = COLOR_INHERITED), the representation uses only one inherited color. If the field PoMesh::valuesIndex is defined (and coloringType != COLOR_INHERITED), the representation is colored using the current data mapping applied to each mesh node value. (See PoMesh for more explanation about the current data-mapping).
Vector data associated with the mesh is not used for this representation.
If the current mesh is a 2D mesh (it does not contain 3D coordinates and the zValuesIndex field = -1) and all the cells have the same orientation, then the field useOverallNormal can be set to true. This reduces system memory usage (storage for normal vectors) and improves rendering performance.
valuesIndex | -1 |
zValuesIndex | -1 |
coloringType | COLOR_INHERITED |
useOverallNormal | FALSE |
PoMeshFilled::PoMeshFilled | ( | ) |
Constructor.
static const SoNodekitCatalog* PoMeshFilled::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoMesh2D.
static SoType PoMeshFilled::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoMesh2D.
virtual const SoNodekitCatalog* PoMeshFilled::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoMesh2D.
virtual SoType PoMeshFilled::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoMesh2D.
virtual void PoMeshFilled::rebuild | ( | ) | [virtual] |
Indicates if a single overall normal vector can be used to render this mesh representation.
Default is false.
If the current mesh is a 2D mesh (it does not contain 3D coordinates and the zValuesIndex field = -1) and all the cells have the same orientation, then this field can be set to true. This reduces system memory usage and improves rendering performance. If the field is false, MeshViz computes one normal per vertex of the shape rendered.
This field should be set to true only when all the cells of the mesh have the same orientation. This field is ignored if the mesh contains 3D coordinates or the zValuesIndex field is not -1.