Changeset 5703 in orxonox.OLD for branches/collision_detection/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Nov 22, 2005, 1:42:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/obb_tree_node.cc
r5702 r5703 33 33 using namespace std; 34 34 35 OBBTree* OBBTreeNode::obbTree = NULL;36 37 35 float** OBBTreeNode::coMat = NULL; 38 36 float** OBBTreeNode::eigvMat = NULL; … … 44 42 * standard constructor 45 43 */ 46 OBBTreeNode::OBBTreeNode () 44 OBBTreeNode::OBBTreeNode (const OBBTree* tree) 45 : BVTreeNode() 47 46 { 48 47 this->setClassID(CL_OBB_TREE_NODE, "OBBTreeNode"); 48 this->obbTree = tree; 49 49 this->nodeLeft = NULL; 50 50 this->nodeRight = NULL; … … 117 117 118 118 PRINT(3)("\n"); 119 this->treeIndex = this->obbTree->getID();120 119 PRINTF(3)("OBB Depth: %i, tree index: %i, numVertices: %i\n", depth, treeIndex, length); 121 120 this->depth = depth; … … 181 180 { 182 181 PRINT(3)("\n"); 183 this->treeIndex = this->obbTree->getID();184 182 PRINTF(3)("OBB Depth: %i, tree index: %i, numVertices: %i\n", depth, treeIndex, length); 185 183 this->depth = depth; … … 208 206 if(this->tmpLen1 > 2) 209 207 { 210 OBBTreeNode* node1 = new OBBTreeNode( );208 OBBTreeNode* node1 = new OBBTreeNode(this->obbTree); 211 209 this->nodeLeft = node1; 212 210 this->nodeLeft->spawnBVTree(depth - 1, this->tmpVert1, this->tmpLen1); … … 219 217 if( this->tmpLen2 > 2) 220 218 { 221 OBBTreeNode* node2 = new OBBTreeNode( );219 OBBTreeNode* node2 = new OBBTreeNode(this->obbTree); 222 220 this->nodeRight = node2; 223 221 this->nodeRight->spawnBVTree(depth - 1, this->tmpVert2, this->tmpLen2);
Note: See TracChangeset
for help on using the changeset viewer.