diff --git a/tutorial/t4.geo b/tutorial/t4.geo index d27eff9d44c716a2f5dd3eecba11e6cee717a399..78da214665b112fc484cfbfda95ef7618fdb7eef 100644 --- a/tutorial/t4.geo +++ b/tutorial/t4.geo @@ -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"}; }; diff --git a/tutorial/t8.geo b/tutorial/t8.geo index f5082bae8430984b7191f07ce247fc08a68a8662..449445e5e732e68c3edb94ab532b79a9be0464b1 100644 --- a/tutorial/t8.geo +++ b/tutorial/t8.geo @@ -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: diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index 1f1ecaf14d8bae2bef5148f484aab35af043290b..691289423c7122ed600d1900c643316b949ed698 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.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 "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"}; }; @@ -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 = "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; <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 < 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) <I><FONT COLOR="#B22222">// We want to create 320x240 frames when num==3: