From 3c30c804c8f95f60be31c26c43381397650d11ec Mon Sep 17 00:00:00 2001 From: David G Yu Date: Fri, 5 Jun 2015 14:06:46 -0700 Subject: [PATCH] Fixed farViewer hotkeys to match other examples New key bindings: Control edges 'H' (was 'e') Control vertices 'J' (was 'r') Draw mode 'W' (was 'f') Fit Frame 'F' (was previously unavailable) --- examples/farViewer/farViewer.cpp | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) 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