From 3f5b933aac40dd2df70b5dc3cf09873be76853cf Mon Sep 17 00:00:00 2001 From: Marco Callieri mcallieri Date: Thu, 5 Dec 2013 13:26:56 +0000 Subject: [PATCH] - now, when user double-click on GLarea to recenter trackball, the coordinates of the picked point are printed in the LOG --- src/meshlab/glarea.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/meshlab/glarea.cpp b/src/meshlab/glarea.cpp index 997651ff8..a9c21b800 100644 --- a/src/meshlab/glarea.cpp +++ b/src/meshlab/glarea.cpp @@ -540,6 +540,8 @@ void GLArea::paintEvent(QPaintEvent */*event*/) hasToPick=false; if(Pick(pointToPick[0],pointToPick[1],pp)) { + // write picked point in the log + Logf(0,"Recentering on point [%f %f %f]",pp[0],pp[1],pp[2]); trackball.Translate(-pp); trackball.Scale(1.25f); QCursor::setPos(mapToGlobal(QPoint(width()/2+2,height()/2+2)));