Computer Assited Medical Intervention Tool Kit  version 3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Macros | Functions | Variables
gensphere.cpp File Reference
#include <iostream>
#include <string>
#include <math.h>
#include <PhysicalModel.h>
#include <StructuralComponent.h>
#include <MultiComponent.h>
#include "../ansys2pml/programarg.h"
+ Include dependency graph for gensphere.cpp:

Macros

#define C   0.5773502691896257645
 
#define X   0.525731112119133696
 
#define Z   0.850650808352039932
 

Functions

int main (int argc, char **argv)
 
Atom * newAtom (double posA[3])
 
void normalize (double v[3])
 
void printArg ()
 
void processArg ()
 
void subdivide (Atom *a1, Atom *a2, Atom *a3, int depth)
 
void subdivide (Atom *a1, Atom *a2, Atom *a3, Atom *a4, int depth)
 

Variables

unsigned int atomIndex
 
unsigned int cubeFace [6][4]
 
double cubeVertex [8][3]
 
StructuralComponent * elemSC
 
vector< unsigned int * > faces
 
unsigned int icosahedronFace [20][3]
 
double icosahedronVertex [12][3]
 
string outputPML
 
PhysicalModel * pm
 
string shapeType
 
int subdiv
 
vector< double * > vertices
 

Macro Definition Documentation

#define C   0.5773502691896257645
#define X   0.525731112119133696
#define Z   0.850650808352039932

Function Documentation

int main ( int  argc,
char **  argv 
)
Atom* newAtom ( double  posA[3])
void normalize ( double  v[3])

Referenced by subdivide().

void printArg ( )

References outputPML, shapeType, and subdiv.

Referenced by main().

void processArg ( )
void subdivide ( Atom *  a1,
Atom *  a2,
Atom *  a3,
int  depth 
)
void subdivide ( Atom *  a1,
Atom *  a2,
Atom *  a3,
Atom *  a4,
int  depth 
)

Variable Documentation

unsigned int atomIndex
unsigned int cubeFace[6][4]
Initial value:
= {
{0,1,2,3}, {0,4,5,1}, {1,5,6,2},
{4,0,3,7}, {5,4,7,6}, {2,6,7,3}
}

Referenced by processArg().

double cubeVertex[8][3]
Initial value:
= {
{C, C, -C}, {C, C, C}, {C, -C, C}, {C, -C, -C},
{-C, C, -C}, {-C, C, C}, {-C, -C, C}, {-C, -C, -C}
}
#define C
Definition: gensphere.cpp:67

Referenced by processArg().

Referenced by main().

vector<unsigned int *> faces
unsigned int icosahedronFace[20][3]
Initial value:
= {
{1,4,0}, {4,9,0}, {4,5,9}, {8,5,4}, {1,8,4},
{1,10,8}, {10,3,8}, {8,3,5}, {3,2,5}, {3,7,2},
{3,10,7}, {10,6,7}, {6,11,7}, {6,0,11}, {6,1,0},
{10,1,6}, {11,0,9}, {2,11,9}, {5,2,9}, {11,2,7}
}

Referenced by processArg().

double icosahedronVertex[12][3]
Initial value:
= {
{-X, 0.0, Z}, {X, 0.0, Z}, {-X, 0.0, -Z}, {X, 0.0, -Z},
{0.0, Z, X}, {0.0, Z, -X}, {0.0, -Z, X}, {0.0, -Z, -X},
{Z, X, 0.0}, {-Z, X, 0.0}, {Z, -X, 0.0}, {-Z, -X, 0.0}
}
#define X
Definition: gensphere.cpp:48
#define Z
Definition: gensphere.cpp:49

Referenced by processArg().

string outputPML

Referenced by main(), printArg(), and processArg().

string shapeType

Referenced by main(), printArg(), and processArg().

int subdiv

Referenced by main(), printArg(), and processArg().

vector<double *> vertices