From: wolf Date: Fri, 25 Jun 1999 15:56:11 +0000 (+0000) Subject: Finish 3d eps output of grids. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7cc424a266efa80b5609e96f1762de8ff220d8a;p=dealii-svn.git Finish 3d eps output of grids. git-svn-id: https://svn.dealii.org/trunk@1469 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/grid_out.cc b/deal.II/deal.II/source/grid/grid_out.cc index 0212170956..c3ff16781f 100644 --- a/deal.II/deal.II/source/grid/grid_out.cc +++ b/deal.II/deal.II/source/grid/grid_out.cc @@ -221,8 +221,6 @@ void GridOut::write_eps (const Triangulation<3> &tria, // loop over all lines and compute their // projection on the plane perpendicular // to the direction of sight - cout << "=======================================" << endl; - if (true) { // direction of view equals the unit @@ -231,23 +229,12 @@ void GridOut::write_eps (const Triangulation<3> &tria, // // we chose here the viewpoint as in // gnuplot + const double z_angle = 60; + const double turn_angle = 30; const double pi = 3.1415926536; - const double x1 = sin(90.0 * 2.*pi / 360.), - x2 = sin(0.0 * 2.*pi / 360.), - x3 = cos(0.0 * 2.*pi / 360.), - x4 = cos(90.0 * 2.*pi / 360.); - - cerr << "x1=" << x1 << " " - << "x2=" << x2 << " " - << "x3=" << x3 << " " - << "x4=" << x4 << " " << endl; - - - const Point<3> view_direction(-sin(90.0 * 2.*pi / 360.) * sin(0.0 * 2.*pi / 360.), - +sin(90.0 * 2.*pi / 360.) * cos(0.0 * 2.*pi / 360.), - -cos(90.0 * 2.*pi / 360.)); - cout << "=======================================" << endl; - cout << view_direction << endl; + const Point<3> view_direction(-sin(z_angle * 2.*pi / 360.) * sin(turn_angle * 2.*pi / 360.), + +sin(z_angle * 2.*pi / 360.) * cos(turn_angle * 2.*pi / 360.), + -cos(z_angle * 2.*pi / 360.)); // decide about the two unit vectors // in this plane. we chose the first one