Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2005, 12:09:36 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: creating lookup table with a very fancy algorithm

File:
1 edited

Legend:

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

    r4907 r4911  
    5050   /* make an array with access to the leafs of the Quad-Tree */
    5151   this->nodes = new QuadtreeNode*[(int)pow(4, treeDepth)];
     52   int* index = new int; *index = 0;
     53   for(int i = 0; i < (int)pow(2, treeDepth); ++i)
     54     this->rootNode->buildHashTable(this->nodes, index);
    5255}
    5356
Note: See TracChangeset for help on using the changeset viewer.