summaryrefslogtreecommitdiff
path: root/graphics/libx3dtk/files/patch-examples-X3DViewer-Viewer.cpp
blob: 164e287de811e66f0517c7964ab254e039354e48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
*** examples/X3DViewer/Viewer.cpp.orig	Sat Oct 29 15:58:21 2005
--- examples/X3DViewer/Viewer.cpp	Sat Oct 29 15:59:38 2005
***************
*** 36,42 ****
    scene.load(name);
    
    // QGLViewer settings
!   setSceneBoundingBox(scene.getBBoxMin().f_data(), scene.getBBoxMax().f_data());
    showEntireScene();
  }
  
--- 36,45 ----
    scene.load(name);
    
    // QGLViewer settings
!   setSceneBoundingBox(
!     qglviewer::Vec(scene.getBBoxMin()[0],scene.getBBoxMin()[1],scene.getBBoxMin()[2]), 
!     qglviewer::Vec(scene.getBBoxMax()[0],scene.getBBoxMax()[1],scene.getBBoxMax()[2])
!   );
    showEntireScene();
  }