Biomechanical Joint Model
 Author: Anderson Maciel

blob.cpp File Reference

#include <math.h>
#include "blob.h"

Include dependency graph for blob.cpp:

Go to the source code of this file.

Defines

#define max(a, b)   (((a) > (b)) ? (a) : (b))
#define min(a, b)   (((a) < (b)) ? (a) : (b))
#define SQR(x)   ((x) * (x))
#define LESS(a, b)   ((a) <((b)+epsilon))
#define GREAT(a, b)   ((a) >((b)-epsilon))

Functions

static bool ray_intersect_primitive (Ray &ray, const Quadric &quadric, REAL root[], REAL c)
int mycompare (const void *aP, const void *bP)

Variables

int(* mycompareP )(const void *, const void *) = mycompare


Define Documentation

#define GREAT a,
b   )     ((a) >((b)-epsilon))
 

Definition at line 237 of file blob.cpp.

Referenced by Metaballs_Shen::intersectedBy().

#define LESS a,
b   )     ((a) <((b)+epsilon))
 

Definition at line 236 of file blob.cpp.

Referenced by Metaballs_Shen::intersectedBy().

#define max a,
b   )     (((a) > (b)) ? (a) : (b))
 

Definition at line 4 of file blob.cpp.

#define min a,
b   )     (((a) < (b)) ? (a) : (b))
 

Definition at line 5 of file blob.cpp.

#define SQR  )     ((x) * (x))
 

Definition at line 10 of file blob.cpp.

Referenced by ray_intersect_primitive().


Function Documentation

int mycompare const void *  aP,
const void *  bP
 

Definition at line 225 of file blob.cpp.

References b, and REAL.

static bool ray_intersect_primitive Ray ray,
const Quadric quadric,
REAL  root[],
REAL  c
[static]
 

Definition at line 12 of file blob.cpp.

References Quadric::a2, Quadric::b2, Quadric::c2, Ray::D, LinAlg::HMAT::fullMult(), max, min, LinAlg::HMAT::mult(), Ray::O, REAL, SQR, Ray::t, and Quadric::T.

Referenced by Blob::intersectedBy(), and Quadric::intersectedBy().

Here is the call graph for this function:


Variable Documentation

int(* mycompareP)(const void *, const void *) = mycompare
 

Definition at line 234 of file blob.cpp.

Referenced by Metaballs_Shen::intersectedBy().


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