Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2005, 10:59:50 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: further work on the test env, cdengine draw functions, debug functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb_tree.cc

    r4550 r4551  
    4545
    4646
    47 void OBBTree::spawnBVTree(int depth)
     47void OBBTree::spawnBVTree(int depth, sVec3D *verticesList, const int length)
    4848{
    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);
    5057}
    5158
     
    8491  PRINT(0)("\n==============================| OBBTree::debug() |===\n");
    8592  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
    8799  PRINT(0)("=  Spawning Tree: Finished\n");
    88100  PRINT(0)("=======================================================\n");     
Note: See TracChangeset for help on using the changeset viewer.