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

Diff of /trunk/pyvisi/py_src/examples/contour.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.setActiveScalar(scalar = "temperature_cell")
11    
12  # Create one contour instance.  # Create one contour instance.
13  ctr1 = Contour(scene = s, data_collector = dc1, scalar = "temperature_cell",  ctr1 = Contour(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  ctr1.generateContours(contours = 1, lower_range = 0.5, upper_range = 0.5)  ctr1.generateContours(contours = 1, lower_range = 0.5, upper_range = 0.5)
16    
17  cam1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)  cam1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)

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

  ViewVC Help
Powered by ViewVC 1.1.26