Commit 8a453470 authored by Jan Möbius's avatar Jan Möbius
Browse files

Test Code in GridNode

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10133 383ad7c9-94d9-4d36-a494-682f7c89f535
parent eb2e1553
...@@ -190,11 +190,21 @@ GridNode::draw(GLState& _state , DrawModes::DrawMode /* _drawMode */ ) ...@@ -190,11 +190,21 @@ GridNode::draw(GLState& _state , DrawModes::DrawMode /* _drawMode */ )
// set grid size to the given radius // set grid size to the given radius
gridSize_ = radius; gridSize_ = radius;
std::cerr << "Set Radius to " << radius << std::endl;
// update the bounding box
bb_min_ = Vec3f(-0.5*gridSize_, 0.0, -0.5*gridSize_); _state.set_line_width(3);
bb_max_ = Vec3f( 0.5*gridSize_, 0.0, 0.5*gridSize_); glBegin(GL_LINES);
glVertex(bb_min);
glVertex(bb_max);
glEnd();
// // update the bounding box
// bb_min_ = Vec3f(-0.5*gridSize_, 0.0, -0.5*gridSize_);
// bb_max_ = Vec3f( 0.5*gridSize_, 0.0, 0.5*gridSize_);
std::cerr << "Draw " << bb_min << " " << bb_max << std::endl;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment