From fa25f77002fffcc52fabd0e099c6591fbc4d1bf1 Mon Sep 17 00:00:00 2001 From: Gilles Marckmann <gilles.marckmann@ec-nantes.fr> Date: Wed, 3 Nov 2010 11:28:14 +0000 Subject: [PATCH] include "Gmsh.h" was missing --- Graphics/Trackball.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Graphics/Trackball.cpp b/Graphics/Trackball.cpp index fd3d628d70..f32e5b0c65 100644 --- a/Graphics/Trackball.cpp +++ b/Graphics/Trackball.cpp @@ -54,6 +54,7 @@ * float->double + optional use of hyperbolic sheet for z-rotation) */ #include <math.h> +#include "Gmsh.h" #include "Trackball.h" #include "Context.h" #include <iostream> @@ -192,8 +193,13 @@ trackball(double q[4], double p1x, double p1y, double p2x, double p2y) * Figure out how much to rotate around that axis. */ vsub(p1,p2,d); - //t = vlength(d); - t = vlength(d) / (2.0*TRACKBALLSIZE); + t = vlength(d); + + double _camera; + GmshGetOption("General", "Camera",_camera ); + if (_camera ) t = vlength(d) / (2.0*TRACKBALLSIZE); + t = vlength(d) / (2.0*TRACKBALLSIZE); + /* * Avoid problems with out-of-control values... */ -- GitLab