/[escript]/trunk/pyvisi/examples/escript_scalarData3D.py
ViewVC logotype

Diff of /trunk/pyvisi/examples/escript_scalarData3D.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 417 by cochrane, Fri Jan 6 01:54:48 2006 UTC revision 605 by gross, Mon Mar 20 07:16:27 2006 UTC
# Line 8  from esys import bruce Line 8  from esys import bruce
8    
9  import numarray  import numarray
10    
11  from pyvisi import *  from esys.pyvisi import *
12  from pyvisi.renderers.vtk import *  from esys.pyvisi.renderers.vtk import *
13    
14    online=False
15    
16  brickDomain = bruce.Brick(9,9,9,10,10,10)  brickDomain = bruce.Brick(9,9,9,10,10,10)
17  brickFunctionSpace = escript.ContinuousFunction(brickDomain)  brickFunctionSpace = escript.ContinuousFunction(brickDomain)
# Line 22  scalarData3D = sin(domainData[0]) Line 24  scalarData3D = sin(domainData[0])
24  scene = Scene()  scene = Scene()
25  plot = IsosurfacePlot(scene)  plot = IsosurfacePlot(scene)
26  plot.setData(scalarData3D)  plot.setData(scalarData3D)
27  scene.render(pause=True)  if online: scene.render(pause=True)
28    
29  scene.save(fname="escript_scalarData3D_isosurfacePlot.png", format="png")  scene.save(fname="escript_scalarData3D_isosurfacePlot.png", format="png")
30    

Legend:
Removed from v.417  
changed lines
  Added in v.605

  ViewVC Help
Powered by ViewVC 1.1.26