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

use relative index
parent 1924ba98
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,7 @@ Physical Surface(2) = {24};
View "comments" {
T2(10,15,0){"File created on Fri Oct 18 23:50:20 2002"};
T2(10,-10,0){"Copyright (C) DGR"};
T2(10,-10,0){"Copyright (C) My Company"};
T3(0,0.11,0,0){"Hole"};
};
......
......@@ -32,40 +32,45 @@ General.SmallAxes = 0 ;
// Some options are also specified for each post-processing view:
View[0].IntervalsType = 2 ;
View[0].OffsetZ = 0.05 ;
View[0].RaiseZ = 0 ;
View[0].Light = 1 ;
View[0].ShowScale = 0;
View[0].SmoothNormals = 1;
View[1].IntervalsType = 1 ;
View[1].ColorTable = { Green, Blue } ;
View[1].NbIso = 10 ;
View[1].ShowScale = 0;
View[2].Name = "Test..." ;
View[2].IntervalsType = 2 ;
View[2].Type = 2;
View[2].IntervalsType = 2 ;
View[2].AutoPosition = 0;
View[2].PositionX = 85;
View[2].PositionY = 50;
View[2].Width = 200;
View[2].Height = 130;
View[3].Type = 3;
View[3].RangeType = 2;
View[3].IntervalsType = 4 ;
View[3].ShowScale = 0;
View[3].Grid = 0;
View[3].CustomMin = View[2].CustomMin;
View[3].CustomMax = View[2].CustomMax;
View[3].AutoPosition = 0;
View[3].PositionX = View[2].PositionX;
View[3].PositionY = View[2].PositionY;
View[3].Width = View[2].Width;
View[3].Height = View[2].Height;
v0 = PostProcessing.NbViews-4;
v1 = v0+1;
v2 = v0+2;
v3 = v0+3;
View[v0].IntervalsType = 2 ;
View[v0].OffsetZ = 0.05 ;
View[v0].RaiseZ = 0 ;
View[v0].Light = 1 ;
View[v0].ShowScale = 0;
View[v0].SmoothNormals = 1;
View[v1].IntervalsType = 1 ;
View[v1].ColorTable = { Green, Blue } ;
View[v1].NbIso = 10 ;
View[v1].ShowScale = 0;
View[v2].Name = "Test..." ;
View[v2].IntervalsType = 2 ;
View[v2].Type = 2;
View[v2].IntervalsType = 2 ;
View[v2].AutoPosition = 0;
View[v2].PositionX = 85;
View[v2].PositionY = 50;
View[v2].Width = 200;
View[v2].Height = 130;
View[v3].Type = 3;
View[v3].RangeType = 2;
View[v3].IntervalsType = 4 ;
View[v3].ShowScale = 0;
View[v3].Grid = 0;
View[v3].CustomMin = View[v2].CustomMin;
View[v3].CustomMax = View[v2].CustomMax;
View[v3].AutoPosition = 0;
View[v3].PositionX = View[v2].PositionX;
View[v3].PositionY = View[v2].PositionY;
View[v3].Width = View[v2].Width;
View[v3].Height = View[v2].Height;
// We loop from 1 to 255 with a step of 1 (to use a step different
// from 1, just add a third argument in the list. For example, 'For
......@@ -76,14 +81,14 @@ t = 0 ;
For num In {1:255}
View[0].TimeStep = t ;
View[1].TimeStep = t ;
View[2].TimeStep = t ;
View[3].TimeStep = t ;
View[v0].TimeStep = t ;
View[v1].TimeStep = t ;
View[v2].TimeStep = t ;
View[v3].TimeStep = t ;
t = (View[0].TimeStep < View[0].NbTimeStep-1) ? t+1 : 0 ;
t = (View[v0].TimeStep < View[v0].NbTimeStep-1) ? t+1 : 0 ;
View[0].RaiseZ += 0.01*t ;
View[v0].RaiseZ += 0.01*t ;
If (num == 3)
// We want to create 320x240 frames when num==3:
......
......@@ -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.38 2003-02-27 18:29:26 geuzaine Exp $
$Id: tutorial.html,v 1.39 2003-02-27 18:34:53 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
......@@ -571,7 +571,7 @@ Physical Surface(2) = {24};
</FONT></I>
View &quot;comments&quot; {
T2(10,15,0){&quot;File created on Fri Oct 18 23:50:20 2002&quot;};
T2(10,-10,0){&quot;Copyright (C) DGR&quot;};
T2(10,-10,0){&quot;Copyright (C) My Company&quot;};
T3(0,0.11,0,0){&quot;Hole&quot;};
};
......@@ -1110,40 +1110,45 @@ General.SmallAxes = 0 ;
<I><FONT COLOR="#B22222">// Some options are also specified for each post-processing view:
</FONT></I>
View[0].IntervalsType = 2 ;
View[0].OffsetZ = 0.05 ;
View[0].RaiseZ = 0 ;
View[0].Light = 1 ;
View[0].ShowScale = 0;
View[0].SmoothNormals = 1;
View[1].IntervalsType = 1 ;
View[1].ColorTable = { Green, Blue } ;
View[1].NbIso = 10 ;
View[1].ShowScale = 0;
View[2].Name = &quot;Test...&quot; ;
View[2].IntervalsType = 2 ;
View[2].Type = 2;
View[2].IntervalsType = 2 ;
View[2].AutoPosition = 0;
View[2].PositionX = 85;
View[2].PositionY = 50;
View[2].Width = 200;
View[2].Height = 130;
View[3].Type = 3;
View[3].RangeType = 2;
View[3].IntervalsType = 4 ;
View[3].ShowScale = 0;
View[3].Grid = 0;
View[3].CustomMin = View[2].CustomMin;
View[3].CustomMax = View[2].CustomMax;
View[3].AutoPosition = 0;
View[3].PositionX = View[2].PositionX;
View[3].PositionY = View[2].PositionY;
View[3].Width = View[2].Width;
View[3].Height = View[2].Height;
v0 = PostProcessing.NbViews-4;
v1 = v0+1;
v2 = v0+2;
v3 = v0+3;
View[v0].IntervalsType = 2 ;
View[v0].OffsetZ = 0.05 ;
View[v0].RaiseZ = 0 ;
View[v0].Light = 1 ;
View[v0].ShowScale = 0;
View[v0].SmoothNormals = 1;
View[v1].IntervalsType = 1 ;
View[v1].ColorTable = { Green, Blue } ;
View[v1].NbIso = 10 ;
View[v1].ShowScale = 0;
View[v2].Name = &quot;Test...&quot; ;
View[v2].IntervalsType = 2 ;
View[v2].Type = 2;
View[v2].IntervalsType = 2 ;
View[v2].AutoPosition = 0;
View[v2].PositionX = 85;
View[v2].PositionY = 50;
View[v2].Width = 200;
View[v2].Height = 130;
View[v3].Type = 3;
View[v3].RangeType = 2;
View[v3].IntervalsType = 4 ;
View[v3].ShowScale = 0;
View[v3].Grid = 0;
View[v3].CustomMin = View[v2].CustomMin;
View[v3].CustomMax = View[v2].CustomMax;
View[v3].AutoPosition = 0;
View[v3].PositionX = View[v2].PositionX;
View[v3].PositionY = View[v2].PositionY;
View[v3].Width = View[v2].Width;
View[v3].Height = View[v2].Height;
<I><FONT COLOR="#B22222">// We loop from 1 to 255 with a step of 1 (to use a step different
</FONT></I><I><FONT COLOR="#B22222">// from 1, just add a third argument in the list. For example, 'For
......@@ -1154,14 +1159,14 @@ t = 0 ;
For num In {1:255}
View[0].TimeStep = t ;
View[1].TimeStep = t ;
View[2].TimeStep = t ;
View[3].TimeStep = t ;
View[v0].TimeStep = t ;
View[v1].TimeStep = t ;
View[v2].TimeStep = t ;
View[v3].TimeStep = t ;
t = (View[0].TimeStep &lt; View[0].NbTimeStep-1) ? t+1 : 0 ;
t = (View[v0].TimeStep &lt; View[v0].NbTimeStep-1) ? t+1 : 0 ;
View[0].RaiseZ += 0.01*t ;
View[v0].RaiseZ += 0.01*t ;
If (num == 3)
<I><FONT COLOR="#B22222">// We want to create 320x240 frames when num==3:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment