Differential D1739 Diff 5899 extern/bullet2/src/BulletCollision/CollisionShapes/btConvexPolyhedron.cpp
Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/BulletCollision/CollisionShapes/btConvexPolyhedron.cpp
| Show All 15 Lines | |||||
| ///This file was written by Erwin Coumans | ///This file was written by Erwin Coumans | ||||
| ///Separating axis rest based on work from Pierre Terdiman, see | ///Separating axis rest based on work from Pierre Terdiman, see | ||||
| ///And contact clipping based on work from Simon Hobbs | ///And contact clipping based on work from Simon Hobbs | ||||
| #include "btConvexPolyhedron.h" | #include "btConvexPolyhedron.h" | ||||
| #include "LinearMath/btHashMap.h" | #include "LinearMath/btHashMap.h" | ||||
| btConvexPolyhedron::btConvexPolyhedron() | btConvexPolyhedron::btConvexPolyhedron() | ||||
| { | { | ||||
| } | } | ||||
| btConvexPolyhedron::~btConvexPolyhedron() | btConvexPolyhedron::~btConvexPolyhedron() | ||||
| { | { | ||||
| } | } | ||||
| inline bool IsAlmostZero(const btVector3& v) | inline bool IsAlmostZero(const btVector3& v) | ||||
| { | { | ||||
| if(fabsf(v.x())>1e-6 || fabsf(v.y())>1e-6 || fabsf(v.z())>1e-6) return false; | if(btFabs(v.x())>1e-6 || btFabs(v.y())>1e-6 || btFabs(v.z())>1e-6) return false; | ||||
| return true; | return true; | ||||
| } | } | ||||
| struct btInternalVertexPair | struct btInternalVertexPair | ||||
| { | { | ||||
| btInternalVertexPair(short int v0,short int v1) | btInternalVertexPair(short int v0,short int v1) | ||||
| :m_v0(v0), | :m_v0(v0), | ||||
| m_v1(v1) | m_v1(v1) | ||||
| ▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines | |||||