CCD_Output Class Reference

Collect the results of collisions. More...

#include <CCD_Output.h>

List of all members.

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)


Detailed Description

Collect the results of collisions.

A simulation output class. It maintain results of the last simulation.

Author:
Duksu Kim ( bluekds@tclab.kaist.ac.kr )

SGLAB, KAIST ( http://sglab.kaist.ac.kr )

Version:
0.5

Member Function Documentation

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

Parameters:
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

Parameters:
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.

Parameters:
listVFs The pointer indicating the first address of array, containing the list of intersecting EE pairs
Returns:
The number of 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.

Parameters:
listVFs The pointer indicating the first address of array, containing the list of intersecting VF pairs
Returns:
The number of of intersecting VF pairs

FORCEINLINE int CCD_Output::getNumEE ( void   )  [inline]

Get the number of intersecting EE of last simulation

Returns:
The number of of intersecting EE pairs

FORCEINLINE int CCD_Output::getNumVF ( void   )  [inline]

Get the number of intersecting VF of last simulation

Returns:
The number of of intersecting VF pairs

void CCD_Output::init ( void   ) 

Initialize results

void CCD_Output::printSummary ( void   ) 

Show the summary of the last simulation's results


The documentation for this class was generated from the following files:


Maintained by: DukSu Kim, (bluekdct at gmail dot com) , Sung-Eui Yoon (sungeui at gmail dot com)
Copyright 2009 SGlab, KAIST.