[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60932] trunk/blender/extern/bullet2/src: More SVN props and EOLs

gsr b3d gsr.b3d at infernal-iceberg.com
Sat Oct 26 00:00:58 CEST 2013


Revision: 60932
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60932
Author:   gsrb3d
Date:     2013-10-25 22:00:58 +0000 (Fri, 25 Oct 2013)
Log Message:
-----------
More SVN props and EOLs

Modified Paths:
--------------
    trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.cpp
    trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.h
    trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btHashedSimplePairCache.cpp
    trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btHashedSimplePairCache.h
    trunk/blender/extern/bullet2/src/BulletDynamics/ConstraintSolver/btFixedConstraint.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/ConstraintSolver/btFixedConstraint.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBody.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBody.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyConstraint.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyConstraint.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyJointLimitConstraint.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyJointLimitConstraint.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyJointMotor.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyJointMotor.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyLink.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyLinkCollider.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyPoint2Point.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyPoint2Point.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodySolverConstraint.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btDantzigSolver.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btMLCPSolver.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btMLCPSolver.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btMLCPSolverInterface.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btPATHSolver.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btSolveProjectedGaussSeidel.h
    trunk/blender/extern/bullet2/src/LinearMath/btMatrixX.h

Property Changed:
----------------
    trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.cpp
    trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.h
    trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btHashedSimplePairCache.cpp
    trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btHashedSimplePairCache.h
    trunk/blender/extern/bullet2/src/BulletDynamics/ConstraintSolver/btFixedConstraint.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/ConstraintSolver/btFixedConstraint.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBody.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBody.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyConstraint.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyConstraint.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyConstraintSolver.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyJointLimitConstraint.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyJointLimitConstraint.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyJointMotor.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyJointMotor.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyLink.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyLinkCollider.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyPoint2Point.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodyPoint2Point.h
    trunk/blender/extern/bullet2/src/BulletDynamics/Featherstone/btMultiBodySolverConstraint.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btDantzigLCP.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btDantzigLCP.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btDantzigSolver.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btMLCPSolver.cpp
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btMLCPSolver.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btMLCPSolverInterface.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btPATHSolver.h
    trunk/blender/extern/bullet2/src/BulletDynamics/MLCPSolvers/btSolveProjectedGaussSeidel.h
    trunk/blender/extern/bullet2/src/LinearMath/btMatrixX.h

Modified: trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.cpp
===================================================================
--- trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.cpp	2013-10-25 21:36:37 UTC (rev 60931)
+++ trunk/blender/extern/bullet2/src/BulletCollision/CollisionDispatch/btCompoundCompoundCollisionAlgorithm.cpp	2013-10-25 22:00:58 UTC (rev 60932)
@@ -1,421 +1,421 @@
-/*
-Bullet Continuous Collision Detection and Physics Library
-Copyright (c) 2003-2013 Erwin Coumans  http://bulletphysics.org
-
-This software is provided 'as-is', without any express or implied warranty.
-In no event will the authors be held liable for any damages arising from the use of this software.
-Permission is granted to anyone to use this software for any purpose, 
-including commercial applications, and to alter it and redistribute it freely, 
-subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
-2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
-3. This notice may not be removed or altered from any source distribution.
-
-*/
-
-#include "btCompoundCompoundCollisionAlgorithm.h"
-#include "BulletCollision/CollisionDispatch/btCollisionObject.h"
-#include "BulletCollision/CollisionShapes/btCompoundShape.h"
-#include "BulletCollision/BroadphaseCollision/btDbvt.h"
-#include "LinearMath/btIDebugDraw.h"
-#include "LinearMath/btAabbUtil2.h"
-#include "BulletCollision/CollisionDispatch/btManifoldResult.h"
-#include "BulletCollision/CollisionDispatch/btCollisionObjectWrapper.h"
-
-
-btShapePairCallback gCompoundCompoundChildShapePairCallback = 0;
-
-btCompoundCompoundCollisionAlgorithm::btCompoundCompoundCollisionAlgorithm( const btCollisionAlgorithmConstructionInfo& ci,const btCollisionObjectWrapper* body0Wrap,const btCollisionObjectWrapper* body1Wrap,bool isSwapped)
-:btActivatingCollisionAlgorithm(ci,body0Wrap,body1Wrap),
-m_sharedManifold(ci.m_manifold)
-{
-	m_ownsManifold = false;
-
-	void* ptr = btAlignedAlloc(sizeof(btHashedSimplePairCache),16);
-	m_childCollisionAlgorithmCache= new(ptr) btHashedSimplePairCache();
-
-	const btCollisionObjectWrapper* col0ObjWrap = body0Wrap;
-	btAssert (col0ObjWrap->getCollisionShape()->isCompound());
-
-	const btCollisionObjectWrapper* col1ObjWrap = body1Wrap;
-	btAssert (col1ObjWrap->getCollisionShape()->isCompound());
-	
-	const btCompoundShape* compoundShape0 = static_cast<const btCompoundShape*>(col0ObjWrap->getCollisionShape());
-	m_compoundShapeRevision0 = compoundShape0->getUpdateRevision();
-
-	const btCompoundShape* compoundShape1 = static_cast<const btCompoundShape*>(col1ObjWrap->getCollisionShape());
-	m_compoundShapeRevision1 = compoundShape1->getUpdateRevision();
-	
-	
-}
-
-
-btCompoundCompoundCollisionAlgorithm::~btCompoundCompoundCollisionAlgorithm()
-{
-	removeChildAlgorithms();
-	m_childCollisionAlgorithmCache->~btHashedSimplePairCache();
-	btAlignedFree(m_childCollisionAlgorithmCache);
-}
-
-void	btCompoundCompoundCollisionAlgorithm::getAllContactManifolds(btManifoldArray&	manifoldArray)
-{
-	int i;
-	btSimplePairArray& pairs = m_childCollisionAlgorithmCache->getOverlappingPairArray();
-	for (i=0;i<pairs.size();i++)
-	{
-		if (pairs[i].m_userPointer)
-		{
-			
-			((btCollisionAlgorithm*)pairs[i].m_userPointer)->getAllContactManifolds(manifoldArray);
-		}
-	}
-}
-
-
-void	btCompoundCompoundCollisionAlgorithm::removeChildAlgorithms()
-{
-	btSimplePairArray& pairs = m_childCollisionAlgorithmCache->getOverlappingPairArray();
-
-	int numChildren = pairs.size();
-	int i;
-	for (i=0;i<numChildren;i++)
-	{
-		if (pairs[i].m_userPointer)
-		{
-			btCollisionAlgorithm* algo = (btCollisionAlgorithm*) pairs[i].m_userPointer;
-			algo->~btCollisionAlgorithm();
-			m_dispatcher->freeCollisionAlgorithm(algo);
-		}
-	}
-	m_childCollisionAlgorithmCache->removeAllPairs();
-}
-
-struct	btCompoundCompoundLeafCallback : btDbvt::ICollide
-{
-	int m_numOverlapPairs;
-
-
-	const btCollisionObjectWrapper* m_compound0ColObjWrap;
-	const btCollisionObjectWrapper* m_compound1ColObjWrap;
-	btDispatcher* m_dispatcher;
-	const btDispatcherInfo& m_dispatchInfo;
-	btManifoldResult*	m_resultOut;
-	
-	
-	class btHashedSimplePairCache*	m_childCollisionAlgorithmCache;
-	
-	btPersistentManifold*	m_sharedManifold;
-	
-	btCompoundCompoundLeafCallback (const btCollisionObjectWrapper* compound1ObjWrap,
-									const btCollisionObjectWrapper* compound0ObjWrap,
-									btDispatcher* dispatcher,
-									const btDispatcherInfo& dispatchInfo,
-									btManifoldResult*	resultOut,
-									btHashedSimplePairCache* childAlgorithmsCache,
-									btPersistentManifold*	sharedManifold)
-		:m_compound0ColObjWrap(compound1ObjWrap),m_compound1ColObjWrap(compound0ObjWrap),m_dispatcher(dispatcher),m_dispatchInfo(dispatchInfo),m_resultOut(resultOut),
-		m_childCollisionAlgorithmCache(childAlgorithmsCache),
-		m_sharedManifold(sharedManifold),
-		m_numOverlapPairs(0)
-	{
-
-	}
-
-
-
-	
-	void		Process(const btDbvtNode* leaf0,const btDbvtNode* leaf1)
-	{
-		m_numOverlapPairs++;
-
-
-		int childIndex0 = leaf0->dataAsInt;
-		int childIndex1 = leaf1->dataAsInt;
-		
-
-		btAssert(childIndex0>=0);
-		btAssert(childIndex1>=0);
-
-
-		const btCompoundShape* compoundShape0 = static_cast<const btCompoundShape*>(m_compound0ColObjWrap->getCollisionShape());
-		btAssert(childIndex0<compoundShape0->getNumChildShapes());
-
-		const btCompoundShape* compoundShape1 = static_cast<const btCompoundShape*>(m_compound1ColObjWrap->getCollisionShape());
-		btAssert(childIndex1<compoundShape1->getNumChildShapes());
-
-		const btCollisionShape* childShape0 = compoundShape0->getChildShape(childIndex0);
-		const btCollisionShape* childShape1 = compoundShape1->getChildShape(childIndex1);
-
-		//backup
-		btTransform	orgTrans0 = m_compound0ColObjWrap->getWorldTransform();
-		const btTransform& childTrans0 = compoundShape0->getChildTransform(childIndex0);
-		btTransform	newChildWorldTrans0 = orgTrans0*childTrans0 ;
-		
-		btTransform	orgTrans1 = m_compound1ColObjWrap->getWorldTransform();
-		const btTransform& childTrans1 = compoundShape1->getChildTransform(childIndex1);
-		btTransform	newChildWorldTrans1 = orgTrans1*childTrans1 ;
-		
-
-		//perform an AABB check first
-		btVector3 aabbMin0,aabbMax0,aabbMin1,aabbMax1;
-		childShape0->getAabb(newChildWorldTrans0,aabbMin0,aabbMax0);
-		childShape1->getAabb(newChildWorldTrans1,aabbMin1,aabbMax1);
-		
-		if (gCompoundCompoundChildShapePairCallback)
-		{
-			if (!gCompoundCompoundChildShapePairCallback(childShape0,childShape1))
-				return;
-		}
-
-		if (TestAabbAgainstAabb2(aabbMin0,aabbMax0,aabbMin1,aabbMax1))
-		{
-			btCollisionObjectWrapper compoundWrap0(this->m_compound0ColObjWrap,childShape0, m_compound0ColObjWrap->getCollisionObject(),newChildWorldTrans0,-1,childIndex0);
-			btCollisionObjectWrapper compoundWrap1(this->m_compound1ColObjWrap,childShape1,m_compound1ColObjWrap->getCollisionObject(),newChildWorldTrans1,-1,childIndex1);
-			
-
-			btSimplePair* pair = m_childCollisionAlgorithmCache->findPair(childIndex0,childIndex1);
-
-			btCollisionAlgorithm* colAlgo = 0;
-
-			if (pair)
-			{
-				colAlgo = (btCollisionAlgorithm*)pair->m_userPointer;
-				
-			} else
-			{
-				colAlgo = m_dispatcher->findAlgorithm(&compoundWrap0,&compoundWrap1,m_sharedManifold);
-				pair = m_childCollisionAlgorithmCache->addOverlappingPair(childIndex0,childIndex1);
-				btAssert(pair);
-				pair->m_userPointer = colAlgo;
-			}
-
-			btAssert(colAlgo);
-						
-			const btCollisionObjectWrapper* tmpWrap0 = 0;
-			const btCollisionObjectWrapper* tmpWrap1 = 0;
-
-			tmpWrap0 = m_resultOut->getBody0Wrap();
-			tmpWrap1 = m_resultOut->getBody1Wrap();
-
-			m_resultOut->setBody0Wrap(&compoundWrap0);
-			m_resultOut->setBody1Wrap(&compoundWrap1);
-
-			m_resultOut->setShapeIdentifiersA(-1,childIndex0);
-			m_resultOut->setShapeIdentifiersB(-1,childIndex1);
-
-
-			colAlgo->processCollision(&compoundWrap0,&compoundWrap1,m_dispatchInfo,m_resultOut);
-			
-			m_resultOut->setBody0Wrap(tmpWrap0);
-			m_resultOut->setBody1Wrap(tmpWrap1);
-			
-
-
-		}
-	}
-};
-
-
-static DBVT_INLINE bool		MyIntersect(	const btDbvtAabbMm& a,
-								  const btDbvtAabbMm& b, const btTransform& xform)
-{
-	btVector3 newmin,newmax;
-	btTransformAabb(b.Mins(),b.Maxs(),0.f,xform,newmin,newmax);
-	btDbvtAabbMm newb = btDbvtAabbMm::FromMM(newmin,newmax);
-	return Intersect(a,newb);
-}
-
-
-static inline void		MycollideTT(	const btDbvtNode* root0,
-								  const btDbvtNode* root1,
-								  const btTransform& xform,
-								  btCompoundCompoundLeafCallback* callback)
-{
-
-		if(root0&&root1)
-		{
-			int								depth=1;
-			int								treshold=btDbvt::DOUBLE_STACKSIZE-4;
-			btAlignedObjectArray<btDbvt::sStkNN>	stkStack;
-			stkStack.resize(btDbvt::DOUBLE_STACKSIZE);
-			stkStack[0]=btDbvt::sStkNN(root0,root1);
-			do	{
-				btDbvt::sStkNN	p=stkStack[--depth];
-				if(MyIntersect(p.a->volume,p.b->volume,xform))
-				{
-					if(depth>treshold)
-					{
-						stkStack.resize(stkStack.size()*2);
-						treshold=stkStack.size()-4;
-					}
-					if(p.a->isinternal())
-					{
-						if(p.b->isinternal())
-						{					
-							stkStack[depth++]=btDbvt::sStkNN(p.a->childs[0],p.b->childs[0]);
-							stkStack[depth++]=btDbvt::sStkNN(p.a->childs[1],p.b->childs[0]);
-							stkStack[depth++]=btDbvt::sStkNN(p.a->childs[0],p.b->childs[1]);
-							stkStack[depth++]=btDbvt::sStkNN(p.a->childs[1],p.b->childs[1]);
-						}
-						else
-						{
-							stkStack[depth++]=btDbvt::sStkNN(p.a->childs[0],p.b);
-							stkStack[depth++]=btDbvt::sStkNN(p.a->childs[1],p.b);
-						}
-					}
-					else
-					{
-						if(p.b->isinternal())
-						{
-							stkStack[depth++]=btDbvt::sStkNN(p.a,p.b->childs[0]);
-							stkStack[depth++]=btDbvt::sStkNN(p.a,p.b->childs[1]);
-						}
-						else
-						{
-							callback->Process(p.a,p.b);
-						}
-					}
-				}
-			} while(depth);
-		}
-}
-
-void btCompoundCompoundCollisionAlgorithm::processCollision (const btCollisionObjectWrapper* body0Wrap,const btCollisionObjectWrapper* body1Wrap,const btDispatcherInfo& dispatchInfo,btManifoldResult* resultOut)
-{
-
-	const btCollisionObjectWrapper* col0ObjWrap = body0Wrap;

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list