#include "voxel_1.h"#include <math.h>#include "tabs_1/tablesizes.inc"#include "tabs_1/rotmatrix.inc"#include "tabs_1/meshverts.inc"

Defines | |
| #define | HEIGHT (sqrt(3)/2) |
Variables | |
| static double | rotationMatrices [NUM_TRANSFORMATIONS_MIRROR][9] |
| #define HEIGHT (sqrt(3)/2) |
Referenced by voxel_1_c::calculateSize(), voxel_1_c::getConnectionFace(), and voxel_1_c::recalcSpaceCoordinates().
double rotationMatrices[NUM_TRANSFORMATIONS_MIRROR][9] [static] |
Initial value:
{
{ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 },
{ 0.5, -sqrt(0.75), 0.0, sqrt(0.75), 0.5, 0.0, 0.0, 0.0, 1.0 },
{ -0.5, -sqrt(0.75), 0.0, sqrt(0.75), -0.5, 0.0, 0.0, 0.0, 1.0 },
{ -1.0, -0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 1.0 },
{ -0.5, sqrt(0.75), 0.0, -sqrt(0.75), -0.5, 0.0, 0.0, 0.0, 1.0 },
{ 0.5, sqrt(0.75), 0.0, -sqrt(0.75), 0.5, 0.0, 0.0, 0.0, 1.0 },
{ -1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, -1.0 },
{ -0.5, -sqrt(0.75), 0.0, -sqrt(0.75), 0.5, 0.0, 0.0, 0.0, -1.0 },
{ 0.5, -sqrt(0.75), 0.0, -sqrt(0.75), -0.5, 0.0, 0.0, 0.0, -1.0 },
{ 1.0, -0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, -1.0 },
{ 0.5, sqrt(0.75), 0.0, sqrt(0.75), -0.5, 0.0, 0.0, 0.0, -1.0 },
{ -0.5, sqrt(0.75), 0.0, sqrt(0.75), 0.5, 0.0, 0.0, 0.0, -1.0 },
{ -1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0 },
{ -0.5, -sqrt(0.75), 0.0, -sqrt(0.75), 0.5, 0.0, 0.0, 0.0, 1.0 },
{ 0.5, -sqrt(0.75), 0.0, -sqrt(0.75), -0.5, 0.0, 0.0, 0.0, 1.0 },
{ 1.0, -0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 1.0 },
{ 0.5, sqrt(0.75), 0.0, sqrt(0.75), -0.5, 0.0, 0.0, 0.0, 1.0 },
{ -0.5, sqrt(0.75), 0.0, sqrt(0.75), 0.5, 0.0, 0.0, 0.0, 1.0 },
{ 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, -1.0 },
{ 0.5, -sqrt(0.75), 0.0, sqrt(0.75), 0.5, 0.0, 0.0, 0.0, -1.0 },
{ -0.5, -sqrt(0.75), 0.0, sqrt(0.75), -0.5, 0.0, 0.0, 0.0, -1.0 },
{ -1.0, -0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, -1.0 },
{ -0.5, sqrt(0.75), 0.0, -sqrt(0.75), -0.5, 0.0, 0.0, 0.0, -1.0 },
{ 0.5, sqrt(0.75), 0.0, -sqrt(0.75), 0.5, 0.0, 0.0, 0.0, -1.0 }
}
1.5.8