OpenGL Volumizer 2.7 Reference Pages


NAME
vzUnstructuredMesh - Unstructured volumetric geometry.

INHERITS FROM
vzVolumeGeometry

HEADER FILE
#include <Volumizer2/UnstructuredMesh.h>

PUBLIC METHOD SUMMARY
vzUnstructuredMesh ( vzVertexArray* vertices, vzIndexArray* indices);
void setVertexArray ( vzVertexArray* vertices);
void setIndexArray ( vzIndexArray* indices);
vzVertexArray* getVertexArray (  ) const;
vzIndexArray* getIndexArray (  ) const;
virtual vzUnstructuredTetraMesh* tessellate (  ) const = 0;

PROTECTED METHOD SUMMARY
virtual ~vzUnstructuredMesh (  );

CLASS DESCRIPTION
vzUnstructuredMesh serves as an abstract base class for all of the unstructured mesh types. Unlike structured meshes, unstructured meshes do not have any restrictions on the number of polyhedra that can share a vertex in the mesh. The mesh is represented with a list of vertices and a list of polyhedra. The list of vertices is represented by a vzVertexArray, and the list of polyhedra is represented by a vzIndexArray. Each polyhedron in the mesh is specified by n index values, where n is the number of vertices in the polyhedron. Each index corresponds to a vertex in the vertex array.

METHOD DESCRIPTIONS

   vzUnstructuredMesh()
vzUnstructuredMesh ( vzVertexArray* vertices, vzIndexArray* indices);

Constructor for unstructured meshes. Does not allocates memory for vertices and indices. Only stores the pointers vertices and indices by calling setVertexArray() and setIndexArray() respectively.

   ~vzUnstructuredMesh()
virtual ~vzUnstructuredMesh (  );

Destructor for unstructured meshes.

   getIndexArray()
vzIndexArray* getIndexArray (  ) const;

Return a pointer to the index data.

   getVertexArray()
vzVertexArray* getVertexArray (  ) const;

Return a pointer to the vertex data.

   setIndexArray()
void setIndexArray ( vzIndexArray* indices);

Set the indices of the model to the specified values. Index values refer to individual vertex records. Note: Just the data pointer is stored and no memory is allocated for the indices. This increases the reference count of indices.

   setVertexArray()
void setVertexArray ( vzVertexArray* vertices);

Set the vertices of the model to the specified values. Note: Just the data pointer is stored and no memory is allocated for the vertices. This increases the reference count of vertices.

   tessellate()
virtual vzUnstructuredTetraMesh* tessellate (  ) const = 0;

A pure-virtual method to tessellate the given primitive into a set of tetrahedra. This must be defined for each subclass of primitive.

SEE ALSO
vzIndexArray, vzVertexArray, vzVolumeGeometry

Back to Index