diff --git a/examples/farViewer/farViewer.cpp b/examples/farViewer/farViewer.cpp index 5a39d5e2..27601f66 100644 --- a/examples/farViewer/farViewer.cpp +++ b/examples/farViewer/farViewer.cpp @@ -783,6 +783,22 @@ createFarGLMesh(Shape * shape, int maxlevel) { GL_STATIC_DRAW); glBindBuffer(GL_ARRAY_BUFFER, 0); + // compute model bounds + float min[3] = { FLT_MAX, FLT_MAX, FLT_MAX}; + float max[3] = {-FLT_MAX, -FLT_MAX, -FLT_MAX}; + for (size_t i=0; i