]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
write_eps fixed and enhanced to shaded output
authornauber <nauber@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 Apr 1999 06:23:47 +0000 (06:23 +0000)
committernauber <nauber@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 30 Apr 1999 06:23:47 +0000 (06:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@1230 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/data_io.h

index cc7951ddce0a3b95f9eda1f39c12faf93857011a..94e701fe610bf66000be9dc2a4e7acceca775ccd 100644 (file)
@@ -304,7 +304,7 @@ class DataIn {
  * There exist two functions for generating encapsulated Postscript
  * (EPS) without the need for another graphics tool.
  * #write_epsgrid# writes just the 2d grid. The function
- * #write_eps# uses the first data vector to produce a surface plot.
+ * #write_eps# uses the first data vector to produce a shaded surface plot.
  *
  *
  * @author Wolfgang Bangerth, Guido Kanschat, Stefan Nauber, 1998, 1999
@@ -619,6 +619,27 @@ class DataOut {
                                      */
     void write_ucd_faces (ostream &out,
                          const unsigned int starting_index) const;
+
+    class eps_vertex_data{
+      public:
+        double x,y,z;
+        eps_vertex_data(){};
+        eps_vertex_data(double a, double b, double c):x(a),y(b),z(c) {};
+        void turn(double azi, double ele);
+    };
+                                     /** 
+                                     * Class of cell data for output.
+                                     * For eps output some calculations have
+                                     * to be done between transformation and
+                                     * projection and output. There for all
+                                     * output data is put into a STL set.
+                                     */
+    class eps_cell_data{
+      public:
+        vector<eps_vertex_data> vertices;
+        void turn(double azi, double ele);
+      bool operator < (const eps_cell_data &) const;
+    };
 };
 
 
@@ -631,3 +652,4 @@ class DataOut {
 /* end of #ifndef __data_io_H */
 #endif
 /*----------------------------   data_io.h     ---------------------------*/
+

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.