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

clean

parent 87883987
No related branches found
No related tags found
No related merge requests found
// $Id: Main.cpp,v 1.18 2002-05-18 09:14:33 geuzaine Exp $ // $Id: Main.cpp,v 1.19 2002-05-18 09:16:52 geuzaine Exp $
// //
// Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle
// //
...@@ -46,11 +46,6 @@ int yyerrorstate; ...@@ -46,11 +46,6 @@ int yyerrorstate;
Context_T CTX ; Context_T CTX ;
Mesh M, *THEM=NULL, *LOCAL=NULL; Mesh M, *THEM=NULL, *LOCAL=NULL;
// Dummy definitions for link purposes. These should be removed as
// soon as the library structure will be cleaned.
void set_r(int, double){}
// Print some help/info messages // Print some help/info messages
void Info (int level, char *arg0){ void Info (int level, char *arg0){
......
// $Id: Context.cpp,v 1.43 2002-05-18 07:56:47 geuzaine Exp $ // $Id: Context.cpp,v 1.44 2002-05-18 09:16:52 geuzaine Exp $
// //
// Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle
// //
...@@ -50,12 +50,14 @@ ...@@ -50,12 +50,14 @@
void Context_T::buildRotmatrix(void){ void Context_T::buildRotmatrix(void){
double x, y, z; double x, y, z;
extern void set_r(int i, double val);
if(useTrackball){ if(useTrackball){
build_rotmatrix(rot, quaternion); build_rotmatrix(rot, quaternion);
#ifndef _BLACKBOX
// We should reconstruct the Euler angles from the rotation // We should reconstruct the Euler angles from the rotation
// matrix. I'm too lazy to do it :-( // matrix. I'm too lazy to do it :-(
extern void set_r(int i, double val);
set_r(0, 0.); set_r(0, 0.);
set_r(1, 0.); set_r(1, 0.);
set_r(2, 0.); set_r(2, 0.);
...@@ -90,6 +92,8 @@ void Context_T::buildRotmatrix(void){ ...@@ -90,6 +92,8 @@ void Context_T::buildRotmatrix(void){
set_r(1, r1 * 180./(Pi)); // lazyyyyyy set_r(1, r1 * 180./(Pi)); // lazyyyyyy
set_r(2, r2); set_r(2, r2);
*/ */
#endif
} }
else{ else{
x = r[0] * Pi / 180.; x = r[0] * Pi / 180.;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment