Changeset 4551 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection/obb_tree.cc
- Timestamp:
- Jun 8, 2005, 10:59:50 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree.cc
r4550 r4551 45 45 46 46 47 void OBBTree::spawnBVTree(int depth )47 void OBBTree::spawnBVTree(int depth, sVec3D *verticesList, const int length) 48 48 { 49 49 if( unlikely(this->rootNode != NULL)) 50 { 51 PRINTF(2)("The BVTree has already been spawned, flushing and respawning again...\n"); 52 this->flushTree(); 53 } 54 OBBTreeNode* node = new OBBTreeNode(); 55 this->rootNode = node; 56 this->rootNode->spawnBVTree(depth, verticesList, length); 50 57 } 51 58 … … 84 91 PRINT(0)("\n==============================| OBBTree::debug() |===\n"); 85 92 PRINT(0)("= Spawning Tree: Start\n"); 86 this->spawnBVTree(1); 93 94 /* generate some test vertices */ 95 sVec3D vertList[] = {{1.0, 3.0, 4.0},{3.5, 6.2, 9.6},{6.4, 9.0, 2.0}}; 96 97 this->spawnBVTree(1, vertList, 3); 98 87 99 PRINT(0)("= Spawning Tree: Finished\n"); 88 100 PRINT(0)("=======================================================\n");
Note: See TracChangeset
for help on using the changeset viewer.