Changeset 4622 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Jun 13, 2005, 6:25:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4618 r4622 41 41 using namespace std; 42 42 43 OBBTree* OBBTreeNode::obbTree = NULL; 43 44 44 45 /** … … 391 392 void OBBTreeNode::drawBV(int depth) const 392 393 { 393 // glBegin(GL_LINE_LOOP);394 //glColor3f(1.0, 1.0, 1.0);395 //for(int i = 0; i < this->bvElement->numOfVertices; ++i)396 //{397 //glVertex3f(this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]);398 ////printf("v(%f, %f, %f)\n", this->vertices[i][0], this->vertices[i][1], this->vertices[i][2]);399 //}400 //glEnd();401 //this->drawBVPolygon( currentDepth,depth);394 glBegin(GL_TRIANGLES); 395 glColor3f(1.0, 1.0, 1.0); 396 for(int i = 0; i < this->bvElement->numOfVertices; ++i) 397 { 398 glVertex3f(this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]); 399 //printf("v(%f, %f, %f)\n", this->vertices[i][0], this->vertices[i][1], this->vertices[i][2]); 400 } 401 glEnd(); 402 //this->drawBVPolygon(depth); 402 403 } 403 404 … … 405 406 void OBBTreeNode::drawBVPolygon(int depth) const 406 407 { 407 408 OBBTree::material->select(); 408 //OBBTree::material->select(); 409 410 this->obbTree->getMaterial(depth)->select(); 409 411 410 412 /* draw world axes */ … … 520 522 glEnd(); 521 523 522 if( this->nodeLeft != NULL && depth != 0 )523 this->nodeLeft->drawBVPolygon(depth - 1);524 if( this->nodeLeft != NULL && depth != 0 ) 525 this->nodeLeft->drawBVPolygon(depth - 1); 524 526 if( this->nodeRight != NULL && depth != 0) 525 this->nodeRight->drawBVPolygon(depth - 1);527 this->nodeRight->drawBVPolygon(depth - 1); 526 528 527 529 }
Note: See TracChangeset
for help on using the changeset viewer.