Changeset 4923 in orxonox.OLD for orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
- Timestamp:
- Jul 21, 2005, 4:27:06 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r4922 r4923 17 17 18 18 #include "quadtree_node.h" 19 19 20 #include "quadtree.h" 20 21 #include "material.h" … … 94 95 95 96 /** 96 * takes the rest of the initialisation process97 * takes the rest of the initialisation process 97 98 */ 98 99 void QuadtreeNode::init() … … 136 137 137 138 /** 138 139 \brief this functions builds up a hash table containing all leafs of the Quadtree in a sorted array 140 \param nodeList the nodelist array to add them 141 \param index the current index in the array 142 143 The algorithm used for this purpose is home-brown. its not to fast but and the nodes are not always in the right 144 order. this is why there will be needed a quicksort later on. 139 145 */ 140 146 void QuadtreeNode::buildHashTable(QuadtreeNode** nodeList, int* index) … … 160 166 * gives the signal to separate the model into a quadtree 161 167 * @param treeDepth the max depth, the steps to go if treeDept == 0 leaf reached 162 */168 */ 163 169 void QuadtreeNode::separateNode(float minLength) 164 170 { … … 361 367 362 368 369 /** 370 * checks if a point is included in this quadtree 371 * @param v the vector to be checked 372 * @returns true if the vector is included 373 */ 363 374 bool QuadtreeNode::includesPoint(const Vector& v) 364 375 { … … 377 388 378 389 /** 379 * draws the debug quadtree boxes around the model390 * draws all the debug quadtree squares 380 391 */ 381 392 void QuadtreeNode::drawTree() const … … 408 419 409 420 421 /** 422 * draws only this quadtree square 423 */ 410 424 void QuadtreeNode::draw() const 411 425 {
Note: See TracChangeset
for help on using the changeset viewer.