Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7736 in orxonox.OLD for trunk


Ignore:
Timestamp:
May 19, 2006, 6:01:07 PM (19 years ago)
Author:
patrick
Message:

trunk: small cleanup, flushing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_detection/obb_tree_node.cc

    r7735 r7736  
    8989  if( this->bvElement)
    9090    delete this->bvElement;
    91 
    92 //   if( this->triangleIndexList1 != NULL)
    93 //     delete [] this->triangleIndexList1;
    94 //   if( this->triangleIndexList2 != NULL)
    95 //     delete [] this->triangleIndexList2;
    9691}
    9792
     
    117112  this->bvElement->triangleIndexesLength = length;
    118113
    119   // full debug output
    120 
    121   //indexes debug
    122 //   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 
    145114  /* create the bounding boxes in three steps */
    146115  this->calculateBoxCovariance(*this->bvElement, modelInf, triangleIndexes, length);
    147116  this->calculateBoxEigenvectors(*this->bvElement, modelInf, triangleIndexes, length);
    148 //   this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);
    149 //   this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);
    150117  this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);
    151118
     
    491458  if( unlikely(treeNode == NULL || nodeA == NULL || nodeB == NULL))
    492459    return;
    493 
    494460
    495461  PRINTF(4)("collideWith\n");
Note: See TracChangeset for help on using the changeset viewer.