diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-11-18 00:15:24 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-11-18 00:15:24 +0000 |
commit | 475c319554ec0a89dded8c10f521621ca7dd7ff1 (patch) | |
tree | e482c872a263c631a15c14be6aea04ada9b3bde3 /graphics/libx3dtk/files/patch-examples-X3DViewer-Viewer.cpp | |
parent | Add ICBM coordinates. Depending upon whether you trust Google Maps' (diff) |
X3DToolKit is a portable LGPL free C++ toolkit for loading, displaying and
processing X3D models
PR: ports/88184
Submitted by: German Tischler <tanis@gaspode.franken.de>
Notes
Notes:
svn path=/head/; revision=148692
Diffstat (limited to 'graphics/libx3dtk/files/patch-examples-X3DViewer-Viewer.cpp')
-rw-r--r-- | graphics/libx3dtk/files/patch-examples-X3DViewer-Viewer.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/libx3dtk/files/patch-examples-X3DViewer-Viewer.cpp b/graphics/libx3dtk/files/patch-examples-X3DViewer-Viewer.cpp new file mode 100644 index 000000000000..164e287de811 --- /dev/null +++ b/graphics/libx3dtk/files/patch-examples-X3DViewer-Viewer.cpp @@ -0,0 +1,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(); + } + |