Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | Related Pages

VolGridEllipticalMarchingCubes Class Reference

#include <VolGridEllipticalMC.h>

Inheritance diagram for VolGridEllipticalMarchingCubes:

OcTreeIterator List of all members.

Public Member Functions

 VolGridEllipticalMarchingCubes (VolGrid *grid)
virtual bool iterate (OcTreeTraversalNode *travNode)
void marchingCubes (float values[8], float level, int &nVertices, int edgeStart[12], int edgeEnd[12], float param[12], int &nTriangles, int triangles[5][3])
void build (float isovalue)
void generateSurface ()

Public Attributes

VolGridgrid
 Reference to the volumetric grid.

std::vector< class Vector3D > posList
 Surfel positions.

std::vector< class Vector3D > normalList
 Surfel normals.

std::vector< class Vector3D > tangentAxesList
 Tangent axes.

float isoValue
 Iso-value to extract from.


Detailed Description

Elliptical Marching Cubes algorithm is a adaptation of the Marching Cubes algorihm for elliptical surfels.


Constructor & Destructor Documentation

VolGridEllipticalMarchingCubes::VolGridEllipticalMarchingCubes VolGrid grid  )  [inline]
 

Parameters:
grid reference to the volumetric grid.


Member Function Documentation

void VolGridEllipticalMarchingCubes::build float  isovalue  ) 
 

This method is called to run the Elliptical Marching Cubes algorithm.

Parameters:
isovalue defines the level to extract the surface from.

void VolGridEllipticalMarchingCubes::generateSurface  ) 
 

This method is called to generate the surfels.

bool VolGridEllipticalMarchingCubes::iterate OcTreeTraversalNode travNode  )  [virtual]
 

Needed to iterate the octree.

Reimplemented from OcTreeIterator.

void VolGridEllipticalMarchingCubes::marchingCubes float  values[8],
float  level,
int &  nVertices,
int  edgeStart[12],
int  edgeEnd[12],
float  param[12],
int &  nTriangles,
int  triangles[5][3]
 

This method determines the triangle positions of a volumetric grid cell according to the modified Marching Cubes algorithm.

Parameters:
values[8] the distance values from the eight corners of the cube.
level defines the iso-level to extract from (normally level = 0.0)
nVertices[8] defines the number of vertices according to the Marching Cubes look-up table.
edgeStart[12] defines on which edge the corresponding edge start is according to the Marching Cubes look-up table.
edgeEnd[12] defines on which edge the corresponding edge end is according to the Marching Cubes look-up table.
param[12] defines the where the point has to be located [0,1] on an edge.
nTriangles number of triangles according to the Marching Cubes look-up table.
triangles[5][3] triangles according to the Marching Cubes look-up table.


The documentation for this class was generated from the following files:
Generated on Tue Sep 30 18:19:53 2003 for Pointshop3D by doxygen 1.3.3