~ubuntu-branches/ubuntu/dapper/gmsh/dapper

« back to all changes in this revision

Viewing changes to demos/isosurf.script

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2005-09-23 23:24:14 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050923232414-iao03ey38rd8pg0m
Tags: 1.60.1-1ubuntu2
gcc4 build failure - meshtype.hpp. (Closes BTS #324310)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
minIso = View[0].Min;
 
3
maxIso = View[0].Max;
 
4
nbIso = GetValue("Number of isosurfaces?", 7);
 
5
 
 
6
Plugin(CutMap).iView = 0;
 
7
 
 
8
For i In {0:nbIso-1}
 
9
  Plugin(CutMap).A = minIso + i * (maxIso-minIso)/(nbIso > 1 ? nbIso-1 : 1);
 
10
  Plugin(CutMap).Run;
 
11
EndFor
 
12
 
 
13
Delete View[0];
 
14
Delete Empty Views;
 
15
 
 
16
Combine Views;
 
17
 
 
18
Plugin(DecomposeInSimplex).iView = 0;
 
19
Plugin(DecomposeInSimplex).Run;
 
20
 
 
21
View[0].ColormapAlpha = 0.6;
 
22
View[0].SmoothNormals = 1;
 
23
 
 
24
General.FastRedraw = 0;
 
25
General.Color.Background = White;
 
26
General.Color.Foreground = Black;
 
27
General.Color.Text = Black;
 
28
General.Color.SmallAxes = Black;
 
29
 
 
30
//Save View[0] "iso.pos";