1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/graphics/libx3dtk/files/patch-examples-meshViewer-Viewer.cpp
Pav Lucistnik 475c319554 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>
2005-11-18 00:15:24 +00:00

23 lines
704 B
C++

*** 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();
}