Changeset 4925 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jul 21, 2005, 4:54:55 PM (19 years ago)
- 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 68 68 float xOff = r->getCenter()->x - r->getAxis(); 69 69 float yOff = r->getCenter()->z - r->getAxis(); 70 this->offset = new Vector(); 70 71 this->offset->x = xOff; 71 72 this->offset->z = yOff; … … 179 180 void Quadtree::drawTree() const 180 181 { 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 } 186 187 } -
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r4924 r4925 71 71 this->quadtree = quadtree; 72 72 this->maxDepth = maxDepth; 73 this->treeDepth = 0; 74 this->indexNode = 0; 73 75 74 76 /* create an array of triangle references */ … … 86 88 87 89 /* set some important variables */ 88 this->treeDepth = 0;89 this->indexNode = 0;90 90 this->pDimension = this->getDimFromModel(); 91 91
Note: See TracChangeset
for help on using the changeset viewer.