Changeset 4957 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jul 25, 2005, 9:06:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r4956 r4957 400 400 b = *(sVec3D*)&this->pVertices[this->pTriangles[i]->indexToVertices[1]]; 401 401 c = *(sVec3D*)&this->pVertices[this->pTriangles[i]->indexToVertices[2]]; 402 402 403 403 if( unlikely(this->pointInTriangle(position, a, b, c))) 404 405 406 407 404 { 405 tri = this->pTriangles[i]; 406 break; 407 } 408 408 } 409 409 410 410 /* calculate height out of the data collected above */ 411 411 412 412 } 413 413 … … 419 419 420 420 There is some random behaviour if there are more than one triangle at the same y 421 coordinate. At the moment the function just takes the first triangle, that included the 421 coordinate. At the moment the function just takes the first triangle, that included the 422 422 vector 423 423 */ … … 433 433 434 434 if( unlikely(this->pointInTriangle(position, a, b, c))) 435 435 return this->pTriangles[i]; 436 436 } 437 437 return NULL; … … 456 456 457 457 /** 458 * checks if two points are on the same side 458 * checks if two points are on the same side 459 459 * @param point one to be checked 460 460 * @param point two to be checked
Note: See TracChangeset
for help on using the changeset viewer.