Changeset 4899 in orxonox.OLD for orxonox/trunk/src/lib/graphics
- Timestamp:
- Jul 19, 2005, 10:05:30 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_node.cc
r4898 r4899 37 37 this->pVertices = pVertices; 38 38 this->numVertices = numVertices; 39 39 40 this->quadtree = quadtree; 40 this->treeDepth = 0;41 41 this->parent = parent; 42 42 43 this->pDimension = rect; 43 44 this->treeDepth = treeDepth; … … 94 95 95 96 this->offset = 0.0f; 97 96 98 this->parent = NULL; 97 99 this->nodeA = NULL; … … 100 102 this->nodeD = NULL; 101 103 102 this->separateNode(this->treeDepth, this->maxDepth); 104 if( this->treeDepth < this->maxDepth) 105 this->separateNode(); 103 106 } 104 107 … … 120 123 121 124 122 /**123 * gives the signal to separate the model into a quadtree124 * @param treeDepth the max depth, the steps to go if treeDept == 0 leaf reached125 */126 void QuadtreeNode::separateNode(int treeDepth, const int maxDepth)127 {128 129 130 /* dimension calculation & limit checking */131 132 if( treeDepth >= maxDepth)133 return;134 135 /* node separation */136 this->separateNode();137 138 // this->nodeA->separateNode(treeDepth + 1, maxDepth);139 // this->nodeB->separateNode(treeDepth + 1, maxDepth);140 // this->nodeC->separateNode(treeDepth + 1, maxDepth);141 // this->nodeD->separateNode(treeDepth + 1, maxDepth);142 }143 144 125 145 126 /** … … 154 135 155 136 /* node separation */ 156 this->separateNode();157 this->nodeA->separateNode(minLength);158 this->nodeB->separateNode(minLength);159 this->nodeC->separateNode(minLength);160 this->nodeD->separateNode(minLength);137 // this->separateNode(); 138 // this->nodeA->separateNode(minLength); 139 // this->nodeB->separateNode(minLength); 140 // this->nodeC->separateNode(minLength); 141 // this->nodeD->separateNode(minLength); 161 142 } 162 143 -
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.h
r4898 r4899 33 33 void init(); 34 34 35 void separateNode(int treeDepth, const int maxDepth);36 35 void separateNode(float minLength); 37 36 void separateNode();
Note: See TracChangeset
for help on using the changeset viewer.