Changeset 5882 in orxonox.OLD for branches/collision_detection/src/lib/collision_detection/obb_tree.cc
- Timestamp:
- Dec 3, 2005, 1:31:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/obb_tree.cc
r5718 r5882 31 31 * standard constructor 32 32 */ 33 OBBTree::OBBTree(int depth, sVec3D *verticesList, const int length)34 : BVTree()35 {36 this->depth = depth;37 this->init();38 this->spawnBVTree(verticesList, length);39 }40 41 42 33 OBBTree::OBBTree(int depth, const modelInfo& modelInf) 43 34 : BVTree() … … 66 57 } 67 58 68 69 void OBBTree::spawnBVTree(sVec3D *verticesList, const int length)70 {71 if( unlikely(this->rootNode != NULL))72 {73 PRINTF(2)("The BVTree has already been spawned, flushing and respawning again...\n");74 this->flushTree();75 }76 OBBTreeNode* node = new OBBTreeNode(*this, depth);77 this->rootNode = node;78 this->rootNode->spawnBVTree(verticesList, length);79 }80 59 81 60 … … 150 129 } 151 130 152 this->spawnBVTree(vertList, length);131 // this->spawnBVTree(vertList, length); 153 132 154 133 PRINT(0)("= Spawning Tree: Finished\n");
Note: See TracChangeset
for help on using the changeset viewer.