Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

orxonox/trunk: more cleanup, and more cleanup to come

File:
1 edited

Legend:

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

    r4922 r4923  
    1717
    1818#include "quadtree_node.h"
     19
    1920#include "quadtree.h"
    2021#include "material.h"
     
    9495
    9596/**
    96  * takes the rest of the initialisation process
     97 *  takes the rest of the initialisation process
    9798 */
    9899void QuadtreeNode::init()
     
    136137
    137138/**
    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.
    139145 */
    140146void QuadtreeNode::buildHashTable(QuadtreeNode** nodeList, int* index)
     
    160166 *  gives the signal to separate the model into a quadtree
    161167 * @param treeDepth the max depth, the steps to go if treeDept == 0 leaf reached
    162 */
     168 */
    163169void QuadtreeNode::separateNode(float minLength)
    164170{
     
    361367
    362368
     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  */
    363374bool QuadtreeNode::includesPoint(const Vector& v)
    364375{
     
    377388
    378389/**
    379  *  draws the debug quadtree boxes around the model
     390 *  draws all the debug quadtree squares
    380391 */
    381392void QuadtreeNode::drawTree() const
     
    408419
    409420
     421/**
     422 *  draws only this quadtree square
     423 */
    410424void QuadtreeNode::draw() const
    411425{
Note: See TracChangeset for help on using the changeset viewer.