Changeset 4929 in orxonox.OLD for orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.cc
- Timestamp:
- Jul 21, 2005, 6:07:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.cc
r4925 r4929 167 167 int j = (int)(v.z / quadLength); 168 168 169 /* check if object is still inside the terrain */169 /* check if object is still inside the terrain - this check is not complete @todo check all 4 bounds */ 170 170 if( i < this->maxIndex && j < this->maxIndex) 171 171 this->nodes[i + j * this->maxIndex]->includesPoint(position); … … 176 176 177 177 /** 178 * maps a position to a triangle 179 * @param position the position so look for 180 * @return the triangle 181 182 this function will return the quadtree that contains the position 183 */ 184 sTriangleExt* Quadtree::getTriangleFromPosition(const Vector& position) 185 { 186 QuadtreeNode* q = this->getQuadtreeFromPosition(position); 187 return q->getTriangle(position); 188 } 189 190 191 /** 178 192 * draws the debug quadtree boxes around the model 179 193 */
Note: See TracChangeset
for help on using the changeset viewer.