OpenGL Volumizer 2.7 Reference Pages


NAME
vzVolumeGeometry - Volumetric geometry associated with a shape node.

INHERITS FROM
vzGeometry

HEADER FILE
#include <Volumizer2/VolumeGeometry.h>

PUBLIC METHOD SUMMARY
vzVolumeGeometry (  );
virtual vzUnstructuredTetraMesh* tessellate (  ) const = 0;
void setSlicePlanes ( vzSlicePlaneSet* planeSet);
vzSlicePlaneSet* getSlicePlanes (  );

PROTECTED METHOD SUMMARY
virtual ~vzVolumeGeometry (  );

CLASS DESCRIPTION
The vzVolumeGeometry class represents any volumetric geometry attached to a vzShape node. Volumetric geometry primitives cannot be rendered directly by OpenGL. Hence, the render actions generate polygonal geometry to approximate the volumetric geometry of the shape, before it can be rendered. One can also render slicing planes passing through the volumetric geometry by using the setSlicePlanes() method.

METHOD DESCRIPTIONS

   vzVolumeGeometry()
vzVolumeGeometry (  );

Constructor for volumetric geometry.

   ~vzVolumeGeometry()
virtual ~vzVolumeGeometry (  );

Destructor for volumetric geometry.

   getSlicePlanes()
vzSlicePlaneSet* getSlicePlanes (  );

Get the set of slice planes to be rendered for this volume geometry. The default value for the slice planes is NULL. Hence, if not set, this method will return NULL.

   setSlicePlanes()
void setSlicePlanes ( vzSlicePlaneSet* planeSet);

Set a set of slice planes to be rendered for this volume geometry. If planeSet is not NULL, this method disable the "normal volume rendering" mode for the render action. The render action will render the planes in planeSet _clipped against_ this volumetric geometry. The default value for planeSet is NULL.

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

A pure virtual method to perform a simplicial decomposition of the given geometry data. Tessellates the geometry into a tetrahedral mesh and returns a pointer to vzUnstructuredTetraMesh.

SEE ALSO
vzGeometry, vzShape

Back to Index