#include <CCD_Output.h>
Public Member Functions | |
void | init (void) |
void | printSummary (void) |
FORCEINLINE int | getNumVF (void) |
FORCEINLINE int | getNumEE (void) |
int | getIntersetingVFs (intersectingVF *listVFs) |
int | getIntersetingEEs (intersectingEE *listEEs) |
void | addVF (UINT objV, UINT objF, UINT triV, UINT triF, UINT vID, float cTime) |
void | addEE (UINT obj1, UINT obj2, UINT tri1, UINT tri2, UINT e1_ID0, UINT e1_ID1, UINT e2_ID0, UINT e2_ID1, float cTime) |
A simulation output class. It maintain results of the last simulation.
void CCD_Output::addEE | ( | UINT | obj1, | |
UINT | obj2, | |||
UINT | tri1, | |||
UINT | tri2, | |||
UINT | e1_ID0, | |||
UINT | e1_ID1, | |||
UINT | e2_ID0, | |||
UINT | e2_ID1, | |||
float | cTime | |||
) |
Add EE intersecting result
obj1 | the ID of a object1 | |
obj2 | the ID of a object2 | |
tri1 | the ID of a triangle containing edge1 | |
tri2 | the ID of a triangle containing edge2 | |
e1_ID0 | the ID of the first vertex of edge1 | |
e1_ID1 | the ID of the second vertex of edge1 | |
e2_ID0 | the ID of the first vertex of edge2 | |
e2_ID1 | the ID of the second vertex of edge1 | |
cTime | the collision time ( 0 ~ 1.0 ) |
void CCD_Output::addVF | ( | UINT | objV, | |
UINT | objF, | |||
UINT | triV, | |||
UINT | triF, | |||
UINT | vID, | |||
float | cTime | |||
) |
Add VF intersecting result
objV | the ID of a object containing collided vertex | |
objF | the ID of a object containing Face | |
triV | the ID of a triangle containing collided vertex | |
triF | the ID of a face(triangle) | |
vID | the ID of a vertex | |
cTime | the collision time ( 0 ~ 1.0 ) |
int CCD_Output::getIntersetingEEs | ( | intersectingEE * | listEEs | ) |
Get the list of intersecting Edge-Edge pairs.
This method allocate memory dynamically to the parameter, listEEs.
User must released memory explicitly after using it.
listVFs | The pointer indicating the first address of array, containing the list of intersecting EE pairs |
int CCD_Output::getIntersetingVFs | ( | intersectingVF * | listVFs | ) |
Get the list of intersecting Vertex-Face pairs.
This method allocate memory dynamically to the parameter, listVFs.
User must released memory explicitly after using it.
listVFs | The pointer indicating the first address of array, containing the list of intersecting VF pairs |
FORCEINLINE int CCD_Output::getNumEE | ( | void | ) | [inline] |
Get the number of intersecting EE of last simulation
FORCEINLINE int CCD_Output::getNumVF | ( | void | ) | [inline] |
Get the number of intersecting VF of last simulation
void CCD_Output::init | ( | void | ) |
Initialize results
void CCD_Output::printSummary | ( | void | ) |
Show the summary of the last simulation's results