Biomechanical Joint Model
 Author: Anderson Maciel

ray.h File Reference

#include <LinAlg/vecarray.h>
#include <vector>

Include dependency graph for ray.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Ray

Functions

bool intersect_triangle (const VEC &orig, const VEC &dir, const VEC &v0, const VEC &v1, const VEC &v2, REAL &t, REAL &u, REAL &v)
vector< int > find_closest (const VEC &X, const VECArray &Y, int m, REAL radius=infinity)
int project_on_mesh_tmp (const VEC &X, const VECArray &vertlist, const VECArray &normlist, const vector< int > &trilist, REAL &u, REAL &v, VEC &P)
int project_on_mesh (const VEC &X, const VECArray &vertlist, const vector< int > &trilist, REAL &u, REAL &v, VEC &P)


Function Documentation

vector<int> find_closest const VEC X,
const VECArray Y,
int  m,
REAL  radius = infinity
 

Definition at line 83 of file intersect_tri.cpp.

References LinAlg::infinity, LinAlg::Vector::norm2(), REAL, and LinAlg::VECArray::size().

Here is the call graph for this function:

bool intersect_triangle const VEC orig,
const VEC dir,
const VEC v0,
const VEC v1,
const VEC v2,
REAL &  t,
REAL &  u,
REAL &  v
 

Definition at line 43 of file intersect_tri.cpp.

References LinAlg::cross_prod(), LinAlg::dot_prod(), LinAlg::epsilon, and REAL.

Referenced by Mesh::getDistance(), BBox::intersectedBy(), and Mesh::intersectedBy().

Here is the call graph for this function:

int project_on_mesh const VEC X,
const VECArray vertlist,
const vector< int > &  trilist,
REAL &  u,
REAL &  v,
VEC P
 

Definition at line 216 of file intersect_tri.cpp.

References LinAlg::cross_prod(), and LinAlg::dimspace.

Here is the call graph for this function:

int project_on_mesh_tmp const VEC X,
const VECArray vertlist,
const VECArray normlist,
const vector< int > &  trilist,
REAL &  u,
REAL &  v,
VEC P
 

Definition at line 131 of file intersect_tri.cpp.


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