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

*** empty log message ***

parent 8cc698fd
No related branches found
No related tags found
No related merge requests found
...@@ -8,12 +8,11 @@ ...@@ -8,12 +8,11 @@
// Plugins can be added to Gmsh in order to extend its // Plugins can be added to Gmsh in order to extend its
// capabilities. For example, post-processing plugins can modify a // capabilities. For example, post-processing plugins can modify a
// view, or create a new view based on previously loaded views. Three // view, or create a new view based on previously loaded
// default plugins are available at the time of writing: CutMap, // views. Several default plugins are statically linked into Gmsh,
// CutPlane and CutSphere. These plugins are just examples of how // e.g. CutMap, CutPlane, CutSphere, Skin, Transform or Smooth.
// plugins (will) work.
// Let's load a three dimension scalar view // Let's load a three-dimensional scalar view
Include "view3.pos" ; Include "view3.pos" ;
...@@ -24,13 +23,15 @@ Include "view3.pos" ; ...@@ -24,13 +23,15 @@ Include "view3.pos" ;
// the command file, as is shown below. // the command file, as is shown below.
// This sets the optional parameter A of the CutMap plugin to the // 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: // documentation of each plugin), and runs the plugin:
Plugin(CutMap).A = 0.67 ; Plugin(CutMap).A = 0.67 ;
Plugin(CutMap).iView = 0 ; //select View[0] as the working view Plugin(CutMap).iView = 0 ; //select View[0] as the working view
Plugin(CutMap).Run ; Plugin(CutMap).Run ;
// The following runs the CutPlane plugin:
Plugin(CutPlane).A = 0 ; Plugin(CutPlane).A = 0 ;
Plugin(CutPlane).B = 0.2 ; Plugin(CutPlane).B = 0.2 ;
Plugin(CutPlane).C = 1 ; Plugin(CutPlane).C = 1 ;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<H1>README 1/10</H1> <H1>README 1/10</H1>
[<A HREF="#top">top</A>][prev][<A HREF="#file2">next</A>] [<A HREF="#top">top</A>][prev][<A HREF="#file2">next</A>]
<PRE> <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 Here are the examples in the Gmsh tutorial. These examples are
commented (both C and C++-style comments can be used in Gmsh input commented (both C and C++-style comments can be used in Gmsh input
...@@ -1160,12 +1160,11 @@ EndFor ...@@ -1160,12 +1160,11 @@ EndFor
<I><FONT COLOR="#B22222">// Plugins can be added to Gmsh in order to extend its <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">// 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">// view, or create a new view based on previously loaded
</FONT></I><I><FONT COLOR="#B22222">// default plugins are available at the time of writing: CutMap, </FONT></I><I><FONT COLOR="#B22222">// views. Several default plugins are statically linked into Gmsh,
</FONT></I><I><FONT COLOR="#B22222">// CutPlane and CutSphere. These plugins are just examples of how </FONT></I><I><FONT COLOR="#B22222">// e.g. CutMap, CutPlane, CutSphere, Skin, Transform or Smooth.
</FONT></I><I><FONT COLOR="#B22222">// plugins (will) work.
</FONT></I> </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> </FONT></I>
Include &quot;view3.pos&quot; ; Include &quot;view3.pos&quot; ;
...@@ -1176,12 +1175,15 @@ Include &quot;view3.pos&quot; ; ...@@ -1176,12 +1175,15 @@ Include &quot;view3.pos&quot; ;
</FONT></I><I><FONT COLOR="#B22222">// the command file, as is shown below. </FONT></I><I><FONT COLOR="#B22222">// the command file, as is shown below.
</FONT></I> </FONT></I>
<I><FONT COLOR="#B22222">// This sets the optional parameter A of the CutMap plugin to the <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><I><FONT COLOR="#B22222">// documentation of each plugin), and runs the plugin:
</FONT></I> </FONT></I>
Plugin(CutMap).A = 0.67 ; 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).A = 0 ;
Plugin(CutPlane).B = 0.2 ; Plugin(CutPlane).B = 0.2 ;
Plugin(CutPlane).C = 1 ; Plugin(CutPlane).C = 1 ;
...@@ -1196,6 +1198,7 @@ View[0].SmoothNormals = 1; ...@@ -1196,6 +1198,7 @@ View[0].SmoothNormals = 1;
View[1].IntervalsType = 2; View[1].IntervalsType = 2;
View[2].IntervalsType = 2; View[2].IntervalsType = 2;
Draw;
</PRE> </PRE>
<HR> <HR>
<ADDRESS>Generated by <A HREF="http://www.iki.fi/~mtr/genscript/">GNU enscript 1.6.1</A>.</ADDRESS> <ADDRESS>Generated by <A HREF="http://www.iki.fi/~mtr/genscript/">GNU enscript 1.6.1</A>.</ADDRESS>
......
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