Use a different check for duplicate vertices,

Thanks to fastflo, see http://code.google.com/p/bullet/issues/detail?id=555
and http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=7511&p=25762#p25762
Added missing Intel OpenCL build file, and fix some compile issue due to missing external
This commit is contained in:
erwin.coumans
2011-10-12 22:40:43 +00:00
parent 8b849e0d07
commit 04285116ad
3 changed files with 91 additions and 2 deletions

View File

@@ -213,7 +213,8 @@ bool btPolyhedralConvexShape::initializePolyhedralFeatures()
for (int i=0;i<orgpoints.size();i++)
{
if ((rotatedPt-orgpoints[i]).length2()<0.001)
//if ((orgpoints[i].m_orgIndex == orgIndex) || ((rotatedPt-orgpoints[i]).length2()<0.0001))
if (orgpoints[i].m_orgIndex == orgIndex)
{
found=true;
break;