Commit bbb519e6ba6226d4b9ddf44e4adaca6e8e1e3b9c
1 parent
627eed8d
fixed AABB display
Showing
1 changed file
with
2 additions
and
10 deletions
Show diff stats
main.cpp
... | ... | @@ -47,9 +47,8 @@ void glut_render(void) { |
47 | 47 | |
48 | 48 | // render the bounding box |
49 | 49 | glColor3f(0.0, 0.0, 1.0); |
50 | - glBegin(GL_LINE_LOOP); | |
51 | - bb.glPointsCW(); | |
52 | - glEnd(); | |
50 | + bb.glWire(); | |
51 | + | |
53 | 52 | |
54 | 53 | //render the GT network (red) |
55 | 54 | glColor3f(1.0, 0.0, 0.0); |
... | ... | @@ -160,18 +159,11 @@ void display(){ |
160 | 159 | //generate a bounding volume |
161 | 160 | bb = GT.boundingbox(); |
162 | 161 | |
163 | - std::cout<<bb.str()<<std::endl; | |
164 | - | |
165 | - std::cout<<"center: "<<bb.center().str()<<std::endl; | |
166 | - std::cout<<"size: "<<bb.size().str()<<std::endl; | |
167 | - | |
168 | 162 | //create the GLUT window and set callback functions |
169 | 163 | glut_initialize(); |
170 | 164 | |
171 | 165 | glut_reshape(glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT)); |
172 | 166 | |
173 | - std::cout<<cam.str()<<std::endl; | |
174 | - | |
175 | 167 | // enter GLUT event processing cycle |
176 | 168 | glutMainLoop(); |
177 | 169 | } | ... | ... |