Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00018
00019
00020 #ifndef BT_POLYHEDRAL_CONTACT_CLIPPING_H
00021 #define BT_POLYHEDRAL_CONTACT_CLIPPING_H
00022
00023
00024 #include "LinearMath/btAlignedObjectArray.h"
00025 #include "LinearMath/btTransform.h"
00026 #include "btDiscreteCollisionDetectorInterface.h"
00027
00028 class btConvexPolyhedron;
00029
00030 typedef btAlignedObjectArray<btVector3> btVertexArray;
00031
00032
00033 struct btPolyhedralContactClipping
00034 {
00035 static void clipHullAgainstHull(const btVector3& separatingNormal, const btConvexPolyhedron& hullA, const btConvexPolyhedron& hullB, const btTransform& transA,const btTransform& transB, const btScalar minDist, btScalar maxDist, btDiscreteCollisionDetectorInterface::Result& resultOut);
00036 static void clipFaceAgainstHull(const btVector3& separatingNormal, const btConvexPolyhedron& hullA, const btTransform& transA, btVertexArray& worldVertsB1, const btScalar minDist, btScalar maxDist,btDiscreteCollisionDetectorInterface::Result& resultOut);
00037
00038 static bool findSeparatingAxis( const btConvexPolyhedron& hullA, const btConvexPolyhedron& hullB, const btTransform& transA,const btTransform& transB, btVector3& sep);
00039
00041 static void clipFace(const btVertexArray& pVtxIn, btVertexArray& ppVtxOut, const btVector3& planeNormalWS,btScalar planeEqWS);
00042
00043 };
00044
00045 #endif // BT_POLYHEDRAL_CONTACT_CLIPPING_H
00046