mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
- now, when user double-click on GLarea to recenter trackball, the coordinates of the picked point are printed in the LOG
This commit is contained in:
parent
cbe428961f
commit
3f5b933aac
@ -540,6 +540,8 @@ void GLArea::paintEvent(QPaintEvent */*event*/)
|
||||
hasToPick=false;
|
||||
if(Pick<Point3f>(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)));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user