Biomechanical Joint Model
 Author: Anderson Maciel

testMetaball_inventor.cpp File Reference

#include <util.h>
#include <Inventor/nodes/SoMaterial.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/Xt/SoXt.h>
#include <Inventor/nodes/SoLineSet.h>
#include <Inventor/Xt/viewers/SoXtExaminerViewer.h>
#include <Inventor/nodes/SoPointSet.h>
#include <Inventor/nodes/SoVertexProperty.h>
#include <Inventor/nodes/SoDrawStyle.h>
#include <Inventor/nodes/SoSphere.h>
#include <Inventor/actions/SoWriteAction.h>
#include <Inventor/nodes/SoIndexedFaceSet.h>
#include <Inventor/nodes/SoCoordinate3.h>
#include <Inventor/actions/SoSearchAction.h>
#include <Inventor/nodes/SoNormal.h>
#include <Inventor/nodes/SoIndexedLineSet.h>
#include <Inventor/nodes/SoEventCallback.h>
#include <Inventor/events/SoEvents.h>
#include <Inventor/events/SoMouseButtonEvent.h>
#include <LinAlg/linalg.h>
#include <MarchingCubes/marching_cubes.h>
#include <MarchingCubes/blob.h>
#include <MarchingCubes/mesh.h>
#include <vector>
#include <list>
#include <stdio.h>

Include dependency graph for testMetaball_inventor.cpp:

Go to the source code of this file.

Namespaces

namespace  MarchingCubes

Functions

void PrintHelp (char *Command)
void myMouseEvent (void *userData, SoEventCallback *event)
void readPrimitives (char *fileInp, Metaballs &mb)
void readSpheres (char *fileInp, MetaballsSphere &mb, double k)
void SaveIsoSurf2Trig (const marchingCubes &surf, char *BaseName)
void SaveMb2Pts (char *in_fname, char *out_fname)
void displayBBox (SoSeparator *group, const BBox &bb, float lineWidth, uint32_t color)
SoSeparator * drawVoxelisation (const marchingCubes &surf)
SoSeparator * readFile (const char *filename)
void writeFile (SoNode *node, const char *filename)
void analyseScene (SoSeparator *root, SoCoordinate3 **coords, SoNormal **norms, SoIndexedFaceSet **ifs)
void saveToPLY (const marchingCubes &surf, const char *filename)
MeshbuildMeshFromIv (const SoCoordinate3 *coords, const SoNormal *norms, const SoIndexedFaceSet *ifs)
void main (int argc, char **argv)

Variables

float skin_magic_sphere = 1.0
float skin_magic_blob = 0.5
const int MAX_STRING_SIZE = 256


Function Documentation

void analyseScene SoSeparator *  root,
SoCoordinate3 **  coords,
SoNormal **  norms,
SoIndexedFaceSet **  ifs
 

Definition at line 445 of file testMetaball_inventor.cpp.

Mesh* buildMeshFromIv const SoCoordinate3 *  coords,
const SoNormal *  norms,
const SoIndexedFaceSet *  ifs
 

Definition at line 499 of file testMetaball_inventor.cpp.

void displayBBox SoSeparator *  group,
const BBox bb,
float  lineWidth,
uint32_t  color
 

Definition at line 277 of file testMetaball_inventor.cpp.

References BBox::getDim(), and BBox::getMin().

Here is the call graph for this function:

SoSeparator* drawVoxelisation const marchingCubes surf  ) 
 

Definition at line 374 of file testMetaball_inventor.cpp.

References marchingCubes::getNormals(), marchingCubes::getTriangles(), and marchingCubes::getVertices().

Here is the call graph for this function:

void main int  argc,
char **  argv
 

Definition at line 550 of file testMetaball_inventor.cpp.

References PrintHelp(), readSpheres(), skin_magic_blob, and skin_magic_sphere.

Here is the call graph for this function:

void myMouseEvent void *  userData,
SoEventCallback *  event
 

Definition at line 64 of file testMetaball_inventor.cpp.

void PrintHelp char *  Command  ) 
 

Definition at line 46 of file testMetaball_inventor.cpp.

Referenced by main(), and OpenGLInit().

SoSeparator* readFile const char *  filename  ) 
 

Definition at line 419 of file testMetaball_inventor.cpp.

void readPrimitives char *  fileInp,
Metaballs mb
 

Definition at line 87 of file testMetaball_inventor.cpp.

void readSpheres char *  fileInp,
MetaballsSphere mb,
double  k
 

Definition at line 122 of file testMetaball_inventor.cpp.

References MetaballsSphere::addSphere().

Referenced by main().

Here is the call graph for this function:

void SaveIsoSurf2Trig const marchingCubes surf,
char *  BaseName
 

Definition at line 163 of file testMetaball_inventor.cpp.

References marchingCubes::getNormals(), marchingCubes::getTriangles(), marchingCubes::getVertices(), and MAX_STRING_SIZE.

Here is the call graph for this function:

void SaveMb2Pts char *  in_fname,
char *  out_fname
 

Definition at line 214 of file testMetaball_inventor.cpp.

References X.

void saveToPLY const marchingCubes surf,
const char *  filename
 

Definition at line 471 of file testMetaball_inventor.cpp.

References marchingCubes::getNormals(), marchingCubes::getTriangles(), and marchingCubes::getVertices().

Here is the call graph for this function:

void writeFile SoNode *  node,
const char *  filename
 

Definition at line 437 of file testMetaball_inventor.cpp.


Variable Documentation

const int MAX_STRING_SIZE = 256
 

Definition at line 44 of file testMetaball_inventor.cpp.

Referenced by SaveIsoSurf2Trig().

float skin_magic_blob = 0.5
 

Definition at line 42 of file testMetaball_inventor.cpp.

Referenced by main().

float skin_magic_sphere = 1.0
 

Definition at line 41 of file testMetaball_inventor.cpp.

Referenced by main().


Generated on Thu Dec 1 10:14:13 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5