Commit bbb519e6ba6226d4b9ddf44e4adaca6e8e1e3b9c

Authored by David Mayerich
1 parent 627eed8d

fixed AABB display

Showing 1 changed file with 2 additions and 10 deletions   Show diff stats
@@ -47,9 +47,8 @@ void glut_render(void) { @@ -47,9 +47,8 @@ void glut_render(void) {
47 47
48 // render the bounding box 48 // render the bounding box
49 glColor3f(0.0, 0.0, 1.0); 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 //render the GT network (red) 53 //render the GT network (red)
55 glColor3f(1.0, 0.0, 0.0); 54 glColor3f(1.0, 0.0, 0.0);
@@ -160,18 +159,11 @@ void display(){ @@ -160,18 +159,11 @@ void display(){
160 //generate a bounding volume 159 //generate a bounding volume
161 bb = GT.boundingbox(); 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 //create the GLUT window and set callback functions 162 //create the GLUT window and set callback functions
169 glut_initialize(); 163 glut_initialize();
170 164
171 glut_reshape(glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT)); 165 glut_reshape(glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT));
172 166
173 - std::cout<<cam.str()<<std::endl;  
174 -  
175 // enter GLUT event processing cycle 167 // enter GLUT event processing cycle
176 glutMainLoop(); 168 glutMainLoop();
177 } 169 }