Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4925 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Jul 21, 2005, 4:54:55 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: cleaned out the segfaults and some other problems that have been introduced in the last cleanup :)

Location:
orxonox/trunk/src/lib/graphics/spatial_separation
Files:
2 edited

Legend:

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

    r4924 r4925  
    6868  float xOff = r->getCenter()->x - r->getAxis();
    6969  float yOff = r->getCenter()->z - r->getAxis();
     70  this->offset = new Vector();
    7071  this->offset->x = xOff;
    7172  this->offset->z = yOff;
     
    179180void Quadtree::drawTree() const
    180181{
    181   this->rootNode->drawTree();
    182 //   for(int i = 0; i < (int)pow(4, this->treeDepth); ++i)
    183 //   {
    184 //     this->nodes[i]->draw();
    185 //   }
     182  //this->rootNode->drawTree();
     183  for(int i = 0; i < (int)pow(4, this->treeDepth); ++i)
     184  {
     185    this->nodes[i]->draw();
     186  }
    186187}
  • orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc

    r4924 r4925  
    7171  this->quadtree = quadtree;
    7272  this->maxDepth = maxDepth;
     73  this->treeDepth = 0;
     74  this->indexNode = 0;
    7375
    7476  /* create an array of triangle references */
     
    8688
    8789  /* set some important variables */
    88   this->treeDepth = 0;
    89   this->indexNode = 0;
    9090  this->pDimension = this->getDimFromModel();
    9191
Note: See TracChangeset for help on using the changeset viewer.