Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 20, 2005, 9:33:10 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: hash table preparation for quadtree nodes lookup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc

    r4902 r4907  
    107107  this->nodeC = NULL;
    108108  this->nodeD = NULL;
     109  this->nodes = new QuadtreeNode*[4];
    109110
    110111  if( this->treeDepth < this->maxDepth)
     
    279280
    280281  this->nodeD = new QuadtreeNode(pTriD, lenD, this->pVertices, this->numVertices, this->quadtree, this, rD, this->treeDepth + 1, this->maxDepth, (this->treeDepth + 1) * 10 + 3);
     282  /* map the array references, this is for faster and automatical interfacing  \todo: use only array */
     283  this->nodes[0] = this->nodeA;
     284  this->nodes[1] = this->nodeB;
     285  this->nodes[2] = this->nodeC;
     286  this->nodes[3] = this->nodeD;
    281287}
    282288
Note: See TracChangeset for help on using the changeset viewer.