diff --git a/tutorial/t9.geo b/tutorial/t9.geo index 21d51796fdf063c6e64b834bca41ef45a6f9a2aa..b038d3b9d50f80203ff0a2612a58e5bc405720e4 100644 --- a/tutorial/t9.geo +++ b/tutorial/t9.geo @@ -8,12 +8,11 @@ // Plugins can be added to Gmsh in order to extend its // capabilities. For example, post-processing plugins can modify a -// view, or create a new view based on previously loaded views. Three -// default plugins are available at the time of writing: CutMap, -// CutPlane and CutSphere. These plugins are just examples of how -// plugins (will) work. +// view, or create a new view based on previously loaded +// views. Several default plugins are statically linked into Gmsh, +// e.g. CutMap, CutPlane, CutSphere, Skin, Transform or Smooth. -// Let's load a three dimension scalar view +// Let's load a three-dimensional scalar view Include "view3.pos" ; @@ -24,13 +23,15 @@ Include "view3.pos" ; // the command file, as is shown below. // This sets the optional parameter A of the CutMap plugin to the -// value 0.34 (see the About in the graphical interface for the +// value 0.67 (see the About in the graphical interface for the // documentation of each plugin), and runs the plugin: Plugin(CutMap).A = 0.67 ; Plugin(CutMap).iView = 0 ; //select View[0] as the working view Plugin(CutMap).Run ; +// The following runs the CutPlane plugin: + Plugin(CutPlane).A = 0 ; Plugin(CutPlane).B = 0.2 ; Plugin(CutPlane).C = 1 ; diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index ee6a15c0592066a8629ed780d6f62b47f20bd011..26551762a2d81578ac10526944f43c7749f703ca 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -23,7 +23,7 @@ <H1>README 1/10</H1> [<A HREF="#top">top</A>][prev][<A HREF="#file2">next</A>] <PRE> -$Id: tutorial.html,v 1.17 2001-08-04 01:17:28 geuzaine Exp $ +$Id: tutorial.html,v 1.18 2001-08-12 12:31:38 geuzaine Exp $ Here are the examples in the Gmsh tutorial. These examples are commented (both C and C++-style comments can be used in Gmsh input @@ -1160,12 +1160,11 @@ EndFor <I><FONT COLOR="#B22222">// Plugins can be added to Gmsh in order to extend its </FONT></I><I><FONT COLOR="#B22222">// capabilities. For example, post-processing plugins can modify a -</FONT></I><I><FONT COLOR="#B22222">// view, or create a new view based on previously loaded views. Three -</FONT></I><I><FONT COLOR="#B22222">// default plugins are available at the time of writing: CutMap, -</FONT></I><I><FONT COLOR="#B22222">// CutPlane and CutSphere. These plugins are just examples of how -</FONT></I><I><FONT COLOR="#B22222">// plugins (will) work. +</FONT></I><I><FONT COLOR="#B22222">// view, or create a new view based on previously loaded +</FONT></I><I><FONT COLOR="#B22222">// views. Several default plugins are statically linked into Gmsh, +</FONT></I><I><FONT COLOR="#B22222">// e.g. CutMap, CutPlane, CutSphere, Skin, Transform or Smooth. </FONT></I> -<I><FONT COLOR="#B22222">// Let's load a three dimension scalar view +<I><FONT COLOR="#B22222">// Let's load a three-dimensional scalar view </FONT></I> Include "view3.pos" ; @@ -1176,12 +1175,15 @@ Include "view3.pos" ; </FONT></I><I><FONT COLOR="#B22222">// the command file, as is shown below. </FONT></I> <I><FONT COLOR="#B22222">// This sets the optional parameter A of the CutMap plugin to the -</FONT></I><I><FONT COLOR="#B22222">// value 0.34 (see the About in the graphical interface for the +</FONT></I><I><FONT COLOR="#B22222">// value 0.67 (see the About in the graphical interface for the </FONT></I><I><FONT COLOR="#B22222">// documentation of each plugin), and runs the plugin: </FONT></I> Plugin(CutMap).A = 0.67 ; -Plugin(CutMap).Run ; +Plugin(CutMap).iView = 0 ; <I><FONT COLOR="#B22222">//select View[0] as the working view +</FONT></I>Plugin(CutMap).Run ; +<I><FONT COLOR="#B22222">// The following runs the CutPlane plugin: +</FONT></I> Plugin(CutPlane).A = 0 ; Plugin(CutPlane).B = 0.2 ; Plugin(CutPlane).C = 1 ; @@ -1196,6 +1198,7 @@ View[0].SmoothNormals = 1; View[1].IntervalsType = 2; View[2].IntervalsType = 2; +Draw; </PRE> <HR> <ADDRESS>Generated by <A HREF="http://www.iki.fi/~mtr/genscript/">GNU enscript 1.6.1</A>.</ADDRESS>