/[escript]/trunk/pyvisi/py_src/examples/ellipsoid.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/examples/ellipsoid.py

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

revision 993 by jongui, Fri Feb 23 03:35:33 2007 UTC revision 994 by jongui, Fri Feb 23 07:00:54 2007 UTC
# Line 7  s = Scene(renderer = Renderer.ONLINE, nu Line 7  s = Scene(renderer = Renderer.ONLINE, nu
7  dc1 = DataCollector(source = Source.XML)  dc1 = DataCollector(source = Source.XML)
8  dc1.setFileName(file_name =  dc1.setFileName(file_name =
9          "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")          "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")
10    dc1.setActiveTensor(tensor = "stress_cell")
11    
12  # Create one ellipsoid instance.  # Create one ellipsoid instance.
13  e1 = Ellipsoid(scene = s, data_collector = dc1, tensor = "stress_cell",  e1 = Ellipsoid(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST,
14          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)          lut = Lut.COLOR, outline = True)
15  e1.setScaleFactor(scale_factor = 0.1)  e1.setScaleFactor(scale_factor = 0.1)
16  e1.setPhiResolution(resolution = 10)  e1.setPhiResolution(resolution = 10)
17  e1.setThetaResolution(resolution = 10)  e1.setThetaResolution(resolution = 10)

Legend:
Removed from v.993  
changed lines
  Added in v.994

  ViewVC Help
Powered by ViewVC 1.1.26