src/lib/voxel_2_mesh.cpp File Reference

#include "voxel_2.h"
#include "puzzle.h"
#include "../halfedge/polyhedron.h"
#include "math.h"

Include dependency graph for voxel_2_mesh.cpp:


Classes

struct  genPar

Defines

#define Epsilon   1.0e-6

Functions

static void outTriangle (float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, genPar &par)
static void normalize (float *x, float *y, float *z)
static void shiftToHoleBorder (int nr, float *x, float *y, float *z)
static void drawTriangle (float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, int edge12, int edge23, int edge31, int rec, genPar &par)
static float radius (float a, genPar &par)
static void findPointOnArc (float xs, float ys, float zs, float xe, float ye, float ze, float arc, float *x, float *y, float *z)
static void drawHolePiece (int i, float start, float end, float x1, float y1, float z1, float x2, float y2, float z2, int rec, genPar &par)
static void drawHole (int i, float x1, float y1, float z1, float x2, float y2, float z2, int rec, int rec2, genPar &par)
static void shiftToConnectingHole (float px, float py, float pz, float rad, float *x, float *y, float *z)
static void drawConnectingTriangle (float x1, float y1, float z1, float x2, float y2, float z2, genPar &par)
static void drawConnectingHole (float hx, float hy, float hz, float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4, int edgeflag, int rec, genPar &par)
static void makeSphere (uint16_t neighbors, int recursion, bool hollow, bool variable, genPar &par)
static bool curvOk (float curvrad, float cnrad, float sprad, float offset)

Variables

static int connectionPoints [12][3]
static int holeTouchPoints [12][6][3]
static int trianglePoints [8][3][3+1]
static int squarePoints [6][8][4]

Define Documentation

#define Epsilon   1.0e-6


Function Documentation

static bool curvOk ( float  curvrad,
float  cnrad,
float  sprad,
float  offset 
) [static]

static void drawConnectingHole ( float  hx,
float  hy,
float  hz,
float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
float  x3,
float  y3,
float  z3,
float  x4,
float  y4,
float  z4,
int  edgeflag,
int  rec,
genPar par 
) [static]

static void drawConnectingTriangle ( float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
genPar par 
) [static]

static void drawHole ( int  i,
float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
int  rec,
int  rec2,
genPar par 
) [static]

static void drawHolePiece ( int  i,
float  start,
float  end,
float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
int  rec,
genPar par 
) [static]

static void drawTriangle ( float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
float  x3,
float  y3,
float  z3,
int  edge12,
int  edge23,
int  edge31,
int  rec,
genPar par 
) [static]

static void findPointOnArc ( float  xs,
float  ys,
float  zs,
float  xe,
float  ye,
float  ze,
float  arc,
float *  x,
float *  y,
float *  z 
) [static]

References Epsilon.

Referenced by drawHolePiece().

static void makeSphere ( uint16_t  neighbors,
int  recursion,
bool  hollow,
bool  variable,
genPar par 
) [static]

static void normalize ( float *  x,
float *  y,
float *  z 
) [static]

static void outTriangle ( float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
float  x3,
float  y3,
float  z3,
genPar par 
) [static]

static float radius ( float  a,
genPar par 
) [static]

static void shiftToConnectingHole ( float  px,
float  py,
float  pz,
float  rad,
float *  x,
float *  y,
float *  z 
) [static]

References Epsilon, and normalize().

Referenced by drawConnectingHole(), and makeSphere().

static void shiftToHoleBorder ( int  nr,
float *  x,
float *  y,
float *  z 
) [static]

References connectionPoints, and normalize().

Referenced by drawHole(), drawTriangle(), and makeSphere().


Variable Documentation

int connectionPoints[12][3] [static]

Initial value:

 {
  {-1,-1, 0}, {-1,+1, 0}, {+1,-1, 0}, {+1,+1, 0},
  {-1, 0,-1}, {-1, 0,+1}, {+1, 0,-1}, {+1, 0,+1},
  { 0,-1,-1}, { 0,-1,+1}, { 0,+1,-1}, { 0,+1,+1}
}

Referenced by drawHolePiece(), makeSphere(), and shiftToHoleBorder().

int holeTouchPoints[12][6][3] [static]

Referenced by makeSphere().

int squarePoints[6][8][4] [static]

Referenced by makeSphere().

int trianglePoints[8][3][3+1] [static]

Referenced by makeSphere().


Generated on Sun Oct 10 10:02:28 2010 for BurrTools by  doxygen 1.5.8