tesselate.cpp File Reference

#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <flowvr/render/mesh.h>

Include dependency graph for tesselate.cpp:

Go to the source code of this file.

Functions

void projectOnSphere (Vec3f &p, Vec3f center, float radius)
void projectOnSphere (Vec3f &p, Vec3f &n, Vec3f center, float radius)
void tesselateMesh (Mesh &obj, int rec=1, bool onSphere=false)


Function Documentation

void projectOnSphere ( Vec3f &  p,
Vec3f &  n,
Vec3f  center,
float  radius 
)

Definition at line 43 of file tesselate.cpp.

void projectOnSphere ( Vec3f &  p,
Vec3f  center,
float  radius 
)

Definition at line 36 of file tesselate.cpp.

Referenced by tesselateMesh().

void tesselateMesh ( Mesh &  obj,
int  rec = 1,
bool  onSphere = false 
)

Definition at line 52 of file tesselate.cpp.

References projectOnSphere().

Referenced by main().


Generated on Sun Nov 23 04:05:54 2008 for Sofa by  doxygen 1.5.7.1