OpenGL Volumizer 2.7 Reference Pages


NAME
vzStructuredHexaMesh - Volumetric geometry representing a structured hexhedral mesh.

INHERITS FROM
vzVolumeGeometry

HEADER FILE
#include <Volumizer2/StructuredHexaMesh.h>

PUBLIC METHOD SUMMARY
vzStructuredHexaMesh ( const int dim[3], vzVertexArray* vertices);
void setVertexArray ( const int dim[3], vzVertexArray* vertices);
vzVertexArray* getVertexArray (  ) const;
void getDimensions ( int dim[3]) const;
vzUnstructuredTetraMesh* tessellate (  ) const;

PROTECTED METHOD SUMMARY
virtual ~vzStructuredHexaMesh (  );

CLASS DESCRIPTION
vzStructuredHexaMesh provides a simple mechanism for storing and manipulating structured hexahedral meshes. Structured meshes consist of hexahedral cells such that each node in the mesh can be indexed by three indices, just as one would index a three-dimensional array. The connectivity information for the hexahedra is implicit in structured meshes and hence no index information needs to be stored.

METHOD DESCRIPTIONS

   vzStructuredHexaMesh()
vzStructuredHexaMesh ( const int dim[3], vzVertexArray* vertices);

Constructor for a StructuredHexaMesh. The dimensions of the mesh are set to (dim[0], dim[1], dim[2]). The setVertexArray() method is used to set the vertices. vertices should contain (dim[0], dim[1], dim[2]) vertices arranged in a row major order.

   ~vzStructuredHexaMesh()
virtual ~vzStructuredHexaMesh (  );

Destructor for a StructuredHexaMesh.

   getDimensions()
void getDimensions ( int dim[3]) const;

Get the dimensions of the mesh. The dimensions are copied into dim.

   getVertexArray()
vzVertexArray* getVertexArray (  ) const;

Return a pointer to the class vzVertexArray containing the vertex coordinates.

   setVertexArray()
void setVertexArray ( const int dim[3], vzVertexArray* vertices);

Explicitly assign the vertex coordinates for the structured mesh to vertices. Also, set the dimensions for the structured mesh to dim. Increases the reference count of vertices. The number of vertices in the vertices should be equal to (dim[0], dim[1], dim[2])

   tessellate()
vzUnstructuredTetraMesh* tessellate (  ) const;

Tessellate the StructuredHexaMesh into a tetrahedral mesh. The tessellation generates five tetrahedra per hexahedral cell. The tessellation is done in a manner so that the faces of the tetrahedra in one cell match with those of the adjacent cells. If the dimensions of the mesh is (X, Y, Z), then the number of tetrahedra generated would be 5 * (X-1) * (Y-1) * (Z -1).

SEE ALSO
vzVertexArray, vzVolumeGeometry

Back to Index