Biomechanical Joint Model
 Author: Anderson Maciel

collide.cpp File Reference

#include "RAPID_version.H"
#include "RAPID.H"
#include "matvec.H"
#include "overlap.H"
#include "obb.H"

Include dependency graph for collide.cpp:

Go to the source code of this file.

Functions

static void r1 (char *f)
void RAPID_initialize ()
int add_collision (int id1, int id2)
int tri_contact (box *b1, box *b2)
int collide_recursive (box *b1, box *b2, double R[3][3], double T[3], double s)
int RAPID_Collide (double R1[3][3], double T1[3], RAPID_model *RAPID_model1, double R2[3][3], double T2[3], RAPID_model *RAPID_model2, int flag)
int RAPID_Collide (double R1[3][3], double T1[3], double s1, RAPID_model *RAPID_model1, double R2[3][3], double T2[3], double s2, RAPID_model *RAPID_model2, int flag)

Variables

static char rapidtag_data [] = "RAPIDTAG file: "__FILE__" date: "__DATE__" time: "__TIME__
int RAPID_initialized
double RAPID_mR [3][3]
double RAPID_mT [3]
double RAPID_ms
int RAPID_first_contact
int RAPID_num_box_tests
int RAPID_num_tri_tests
int RAPID_num_contacts
int RAPID_num_cols_alloced = 0
collision_pairRAPID_contact = 0


Function Documentation

int add_collision int  id1,
int  id2
 

Definition at line 297 of file collide.cpp.

References RAPID_ERR_COLLIDE_OUT_OF_MEMORY, RAPID_num_cols_alloced, RAPID_num_contacts, and RAPID_OK.

Referenced by tri_contact().

int collide_recursive box b1,
box b2,
double  R[3][3],
double  T[3],
double  s
 

Definition at line 110 of file collide.cpp.

References box::d, box::leaf(), Mprint(), MTxM(), MTxV(), box::N, obb_disjoint(), box::P, box::pR, box::pT, RAPID_first_contact, RAPID_num_box_tests, RAPID_num_contacts, RAPID_OK, box::size(), tri_contact(), VmV(), and Vprint().

Referenced by RAPID_Collide().

Here is the call graph for this function:

static void r1 char *  f  )  [static]
 

Definition at line 48 of file collide.cpp.

References r1(), rapid_version, and rapidtag_data.

Here is the call graph for this function:

int RAPID_Collide double  R1[3][3],
double  T1[3],
double  s1,
RAPID_model RAPID_model1,
double  R2[3][3],
double  T2[3],
double  s2,
RAPID_model RAPID_model2,
int  flag
 

Definition at line 237 of file collide.cpp.

References RAPID_model::b, RAPID_model::build_state, collide_recursive(), MTxM(), MxM(), box::pR, box::pT, RAPID_BUILD_STATE_PROCESSED, RAPID_ERR_UNPROCESSED_MODEL, RAPID_first_contact, RAPID_FIRST_CONTACT, RAPID_initialize(), RAPID_initialized, RAPID_mR, RAPID_ms, RAPID_mT, RAPID_num_box_tests, RAPID_num_contacts, RAPID_num_tri_tests, sMTxV(), sMxVpV(), and VmV().

Here is the call graph for this function:

int RAPID_Collide double  R1[3][3],
double  T1[3],
RAPID_model RAPID_model1,
double  R2[3][3],
double  T2[3],
RAPID_model RAPID_model2,
int  flag
 

Definition at line 228 of file collide.cpp.

Referenced by VCInternal::Collide(), COME_Collide::detectContacts(), and RAPID_Collide().

void RAPID_initialize  ) 
 

int tri_contact box b1,
box b2
 

Definition at line 75 of file collide.cpp.

References add_collision(), tri::id, tri::p1, tri::p2, tri::p3, RAPID_mR, RAPID_ms, RAPID_mT, RAPID_num_tri_tests, RAPID_OK, sMxVpV(), and box::trp.

Referenced by collide_recursive().

Here is the call graph for this function:


Variable Documentation

collision_pair* RAPID_contact = 0
 

Definition at line 70 of file collide.cpp.

Referenced by COME_Collide::detectContacts(), and RAPID_initialize().

int RAPID_first_contact
 

Definition at line 63 of file collide.cpp.

Referenced by collide_recursive(), and RAPID_Collide().

int RAPID_initialized
 

double RAPID_mR[3][3]
 

Definition at line 58 of file collide.cpp.

Referenced by RAPID_Collide(), and tri_contact().

double RAPID_ms
 

Definition at line 60 of file collide.cpp.

Referenced by RAPID_Collide(), and tri_contact().

double RAPID_mT[3]
 

Definition at line 59 of file collide.cpp.

Referenced by RAPID_Collide(), and tri_contact().

int RAPID_num_box_tests
 

Definition at line 65 of file collide.cpp.

Referenced by collide_recursive(), RAPID_Collide(), and RAPID_initialize().

int RAPID_num_cols_alloced = 0
 

Definition at line 69 of file collide.cpp.

Referenced by add_collision().

int RAPID_num_contacts
 

Definition at line 67 of file collide.cpp.

Referenced by add_collision(), VCInternal::Collide(), collide_recursive(), COME_Collide::detectContacts(), RAPID_Collide(), and RAPID_initialize().

int RAPID_num_tri_tests
 

Definition at line 66 of file collide.cpp.

Referenced by RAPID_Collide(), and tri_contact().

char rapidtag_data[] = "RAPIDTAG file: "__FILE__" date: "__DATE__" time: "__TIME__ [static]
 

Definition at line 45 of file collide.cpp.


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