From 13307919692d346a9d4245670fdc7c7bd06bffe2 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 29 Nov 2005 15:49:30 +0000 Subject: [PATCH] change y,-y to have the axes the same way as for x,-x and z,-z --- Fltk/Callbacks.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Fltk/Callbacks.cpp b/Fltk/Callbacks.cpp index 52b42b3028..f163790921 100644 --- a/Fltk/Callbacks.cpp +++ b/Fltk/Callbacks.cpp @@ -1,4 +1,4 @@ -// $Id: Callbacks.cpp,v 1.379 2005-11-29 11:06:53 colignon Exp $ +// $Id: Callbacks.cpp,v 1.380 2005-11-29 15:49:30 geuzaine Exp $ // // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // @@ -393,9 +393,9 @@ void status_xyz1p_cb(CALLBACK_ARGS) Draw(); } else if(!strcmp(str, "y")){ // Y-axis pointing out of the screen - CTX.r[0] = -90.; - CTX.r[1] = 0.; - CTX.r[2] = 180.; + CTX.r[0] = 0.; + CTX.r[1] = 90.; + CTX.r[2] = 90.; CTX.setQuaternionFromEulerAngles(); Draw(); } @@ -406,21 +406,21 @@ void status_xyz1p_cb(CALLBACK_ARGS) CTX.setQuaternionFromEulerAngles(); Draw(); } - else if(!strcmp(str, "nx")){ // X-axis pointing into the screen + else if(!strcmp(str, "nx")){ // look from behind X view CTX.r[0] = -90.; CTX.r[1] = 0.; CTX.r[2] = 90.; CTX.setQuaternionFromEulerAngles(); Draw(); } - else if(!strcmp(str, "ny")){ // Y-axis pointing into the screen + else if(!strcmp(str, "ny")){ // look from behind Y view CTX.r[0] = -90.; - CTX.r[1] = 0.; + CTX.r[1] = -90.; CTX.r[2] = 0.; CTX.setQuaternionFromEulerAngles(); Draw(); } - else if(!strcmp(str, "nz")){ // Z-axis pointing into the screen + else if(!strcmp(str, "nz")){ // look from behind Z view CTX.r[0] = 0.; CTX.r[1] = 180.; CTX.r[2] = 0.; -- GitLab