Changeset 7736 in orxonox.OLD for trunk/src/lib/collision_detection
- Timestamp:
- May 19, 2006, 6:01:07 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/obb_tree_node.cc
r7735 r7736 89 89 if( this->bvElement) 90 90 delete this->bvElement; 91 92 // if( this->triangleIndexList1 != NULL)93 // delete [] this->triangleIndexList1;94 // if( this->triangleIndexList2 != NULL)95 // delete [] this->triangleIndexList2;96 91 } 97 92 … … 117 112 this->bvElement->triangleIndexesLength = length; 118 113 119 // full debug output120 121 //indexes debug122 // for( int i = 0; i < length; ++i)123 // {124 // PRINTF(2)("triangle[%i], index: %i\n", i, triangleIndexes[i]);125 // }126 // for( int i = 0; i < length; ++i)127 // {128 // PRINTF(2)("triangle[%i]\n", i);129 // for(int j = 0; j < 3; ++j)130 // {131 // PRINTF(2)(" vertex[%i]: %f, %f, %f\n", j,132 // (&modelInf.pVertices[modelInf.pTriangles[triangleIndexes[i]].indexToVertices[j]])[0],133 // (&modelInf.pVertices[modelInf.pTriangles[triangleIndexes[i]].indexToVertices[j]])[1],134 // (&modelInf.pVertices[modelInf.pTriangles[triangleIndexes[i]].indexToVertices[j]])[2]);135 // }136 // }137 // PRINT(0)("\n\n\n");138 // for( int i = 0; i < this->bvElement->modelInf->numVertices*3; i+=3)139 // PRINTF(0)( "vertex[%i]: %f, %f, %f\n", i, this->bvElement->modelInf->pVertices[i],140 // this->bvElement->modelInf->pVertices[i+1],141 // this->bvElement->modelInf->pVertices[i+2]);142 143 144 145 114 /* create the bounding boxes in three steps */ 146 115 this->calculateBoxCovariance(*this->bvElement, modelInf, triangleIndexes, length); 147 116 this->calculateBoxEigenvectors(*this->bvElement, modelInf, triangleIndexes, length); 148 // this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);149 // this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);150 117 this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length); 151 118 … … 491 458 if( unlikely(treeNode == NULL || nodeA == NULL || nodeB == NULL)) 492 459 return; 493 494 460 495 461 PRINTF(4)("collideWith\n");
Note: See TracChangeset
for help on using the changeset viewer.