subcube.h 626 Bytes

#define MAXCUBEAXISDIVISIONS 3
#define MAXCUBEAXISPOINTS    2*(MAXCUBEAXISDIVISIONS + 1) 

#define MAXCUBEVERTICES      MAXCUBEAXISPOINTS * MAXCUBEAXISPOINTS * MAXCUBEAXISPOINTS
#define MAXSUBBLOCKS         MAXCUBEVERTICES/8

void  CreateBlocks(int n);
void  CreateSubCubes(void);
void  InitCubeRotations(void);

typedef struct
{
  float RotationAxis[3];
  float Center[3];
  float theta;
  float thetaDelta;
  float scale;
} Cube;

extern float BlockWidthVariation;
extern int BlockWidth;
extern int CubeDivisions[];
extern int CurrentCubeAxis;
extern int NumCubesPerAxis;
extern int NumCubePolys;
extern int NumSubCubes;