Skip to content
Snippets Groups Projects
Commit 13307919 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

change y,-y to have the axes the same way as for x,-x and z,-z
parent ee2ddbc1
Branches
Tags
No related merge requests found
// $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.;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment