Changeset 7983 for code/branches/kicklib/src/external/bullet/BulletCollision/CollisionShapes/btOptimizedBvh.cpp
- Timestamp:
- Feb 27, 2011, 7:43:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/src/external/bullet/BulletCollision/CollisionShapes/btOptimizedBvh.cpp
r5781 r7983 1 1 /* 2 2 Bullet Continuous Collision Detection and Physics Library 3 Copyright (c) 2003-200 6 Erwin Coumans http://continuousphysics.com/Bullet/3 Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org 4 4 5 5 This software is provided 'as-is', without any express or implied warranty. … … 14 14 */ 15 15 16 16 17 #include "btOptimizedBvh.h" 17 18 #include "btStridingMeshInterface.h" … … 56 57 btOptimizedBvhNode node; 57 58 btVector3 aabbMin,aabbMax; 58 aabbMin.setValue(btScalar( 1e30),btScalar(1e30),btScalar(1e30));59 aabbMax.setValue(btScalar(- 1e30),btScalar(-1e30),btScalar(-1e30));59 aabbMin.setValue(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT)); 60 aabbMax.setValue(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT)); 60 61 aabbMin.setMin(triangle[0]); 61 62 aabbMax.setMax(triangle[0]); … … 104 105 btQuantizedBvhNode node; 105 106 btVector3 aabbMin,aabbMax; 106 aabbMin.setValue(btScalar( 1e30),btScalar(1e30),btScalar(1e30));107 aabbMax.setValue(btScalar(- 1e30),btScalar(-1e30),btScalar(-1e30));107 aabbMin.setValue(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT)); 108 aabbMax.setValue(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT)); 108 109 aabbMin.setMin(triangle[0]); 109 110 aabbMax.setMax(triangle[0]); … … 168 169 NodeTriangleCallback callback(m_leafNodes); 169 170 170 btVector3 aabbMin(btScalar(- 1e30),btScalar(-1e30),btScalar(-1e30));171 btVector3 aabbMax(btScalar( 1e30),btScalar(1e30),btScalar(1e30));171 btVector3 aabbMin(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT)); 172 btVector3 aabbMax(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT)); 172 173 173 174 triangles->InternalProcessAllTriangles(&callback,aabbMin,aabbMax); … … 337 338 338 339 339 aabbMin.setValue(btScalar( 1e30),btScalar(1e30),btScalar(1e30));340 aabbMax.setValue(btScalar(- 1e30),btScalar(-1e30),btScalar(-1e30));340 aabbMin.setValue(btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT),btScalar(BT_LARGE_FLOAT)); 341 aabbMax.setValue(btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT),btScalar(-BT_LARGE_FLOAT)); 341 342 aabbMin.setMin(triangleVerts[0]); 342 343 aabbMax.setMax(triangleVerts[0]);
Note: See TracChangeset
for help on using the changeset viewer.