VoxelCube.cpp File Reference

Implementation for our VoxelCube class. More...

#include "../common/standard.h"
#include "VoxelCube.h"
#include "GLBitmapBuffer.h"
#include "MarchingCubesTables.h"
#include "GLutils.h"
#include <GL/glu.h>
#include <map>

Include dependency graph for VoxelCube.cpp:

Include dependency graph

Go to the source code of this file.

Compounds

struct  TRIANGLE

Defines

#define EDGETABLE_HAS(n)   edgeTable[tableIndex] & (1 << n)

Typedefs

typedef std::map< unsigned
int, ColorVertex > 
IdToVertexMap
typedef std::vector< TRIANGLE > TriangleArray

Functions

ColorVertex Interpolate (Vertex &v1, Vertex &v2, double tVal1, double tVal2, float isoLevel)
 Interpolate two vertices. More...


Detailed Description

Implementation for our VoxelCube class.

Code for polygonizing the voxels is courtesy of Raghavendra Chandrashekara; original code for that may be found here:

http://astronomy.swin.edu.au/~pbourke/modelling/polygonise/rchandra/

Author: Matt Loper

Revision:
1.5
Date:
2002/05/21 05:29:36

Definition in file VoxelCube.cpp.


Function Documentation

ColorVertex Interpolate Vertex &    v1,
Vertex &    v2,
double    tVal1,
double    tVal2,
float    isoLevel
 

Interpolate two vertices.

This code was adapted from code by Raghavendra Chandrashekara, available at...

http://astronomy.swin.edu.au/~pbourke/modelling/polygonise/rchandra/

Definition at line 211 of file VoxelCube.cpp.


Generated on Tue May 21 03:35:06 2002 for Archimedes by doxygen1.2.15