diff options
Diffstat (limited to 'graphics/libx3dtk/files/patch-examples-meshViewer-Viewer.cpp')
-rw-r--r-- | graphics/libx3dtk/files/patch-examples-meshViewer-Viewer.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/libx3dtk/files/patch-examples-meshViewer-Viewer.cpp b/graphics/libx3dtk/files/patch-examples-meshViewer-Viewer.cpp new file mode 100644 index 000000000000..de88e374efe1 --- /dev/null +++ b/graphics/libx3dtk/files/patch-examples-meshViewer-Viewer.cpp @@ -0,0 +1,22 @@ +*** examples/meshViewer/Viewer.cpp.orig Sat Oct 29 15:58:21 2005 +--- examples/meshViewer/Viewer.cpp Sat Oct 29 16:08:13 2005 +*************** +*** 41,47 **** + scene.load(name); + + // QGLViewer settings. +! setSceneBoundingBox(scene.getBBoxMin().f_data(), scene.getBBoxMax().f_data()); + setSceneRadius(2.0f*sceneRadius()); + showEntireScene(); + } +--- 41,50 ---- + 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]) +! ); + setSceneRadius(2.0f*sceneRadius()); + showEntireScene(); + } |