20 #ifndef __OPC_TREECOLLIDER_H__ 21 #define __OPC_TREECOLLIDER_H__ 45 #ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE ! 49 SepVector.SV =
Point(1.0
f, 0.0
f, 0.0
f);
50 #endif // __MESHMERIZER_H__ 55 #ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE ! 57 #endif // __MESHMERIZER_H__ 63 #ifdef __MESHMERIZER_H__ // Collision hulls only supported within ICE ! 67 #endif // __MESHMERIZER_H__ 78 this->collisionPairInserter = collisionPairInserter;
122 inline_ void SetFullPrimBoxTest(
bool flag) { mFullPrimBoxTest =
flag; }
134 inline_ udword GetNbBVBVTests()
const {
return mNbBVBVTests; }
144 inline_ udword GetNbPrimPrimTests()
const {
return mNbPrimPrimTests; }
154 inline_ udword GetNbBVPrimTests()
const {
return mNbBVPrimTests; }
166 inline_ udword GetNbPairs()
const {
return mPairs.GetNbEntries()>>1; }
176 inline_ const Pair* GetPairs()
const {
return (
const Pair*)mPairs.GetEntries(); }
245 bool CheckTemporalCoherence(
Pair* cache);
252 if(!mIMesh0 || !mIMesh1)
return FALSE;
258 #endif // __OPC_TREECOLLIDER_H__
void setCollisionPairInserter(hrp::CollisionPairInserterBase *collisionPairInserter)
const AABBCollisionNode * mNowNode0
#define null
our own NULL pointer
bool mFullPrimBoxTest
Perform full Primitive-BV tests (true) or SAT-lite tests (false)
udword mNbPrimPrimTests
Number of Primitive-Primitive tests.
hrp::CollisionPairInserterBase * collisionPairInserter
bool mFullBoxBoxTest
Perform full BV-BV tests (true) or SAT-lite tests (false)
udword mNbBVBVTests
Number of BV-BV tests.
inline_ BVTCache()
Constructor.
virtual inline_ void InitQuery()
Matrix3x3 mAR
Absolute rotation matrix.
const MeshInterface * mIMesh0
User-defined mesh interface for object0.
int BOOL
Another boolean type.
unsigned int udword
sizeof(udword) must be 4
Container mPairs
Pairs of colliding primitives.
Point mT0to1
Translation from object0 to object1.
virtual const char * ValidateSettings()=0
inline_ void ResetCountDown()
udword mLeafIndex
Triangle index.
#define HRP_COLLISION_EXPORT
const AABBCollisionNode * mNowNode1
udword mNbBVPrimTests
Number of BV-Primitive tests.
Matrix3x3 mR0to1
Rotation from object0 to object1.
Point mT1to0
Translation from object1 to object0.
const MeshInterface * mIMesh1
User-defined mesh interface for object1.
Matrix3x3 mR1to0
Rotation from object1 to object0.
const Model * Model1
Model for second object.
png_infop png_uint_32 flag
inline_ BOOL Setup(const MeshInterface *mi0, const MeshInterface *mi1)
A generic couple structure.
const Model * Model0
Model for first object.