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

Diff of /trunk/pyvisi/py_src/examples/seriesofcutsoffline.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 6  s = Scene(renderer = Renderer.OFFLINE_JP Line 6  s = Scene(renderer = Renderer.OFFLINE_JP
6    
7  # Create two data collector instances.  # Create two data collector instances.
8  dc1 = DataCollector(source = Source.XML)  dc1 = DataCollector(source = Source.XML)
   
9  dc1.setFileName(file_name =  dc1.setFileName(file_name =
10          "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")          "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")
11    dc1.setActiveScalar(scalar = "temperature")
12    
13  # NOTE: There is a difference between performing rotation then followed by  # NOTE: There is a difference between performing rotation then followed by
14  # translation and performing translation then followed by rotation.  # translation and performing translation then followed by rotation.
# Line 18  mopc1 = MapOnPlaneCut(scene = s, data_co Line 18  mopc1 = MapOnPlaneCut(scene = s, data_co
18          viewport = Viewport.SOUTH_WEST)          viewport = Viewport.SOUTH_WEST)
19  mopc1.setPlaneToYZ(offset = 0.1)  mopc1.setPlaneToYZ(offset = 0.1)
20    
21  c1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)  #c1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)
22  c1.isometricView()  #c1.isometricView()
23    
24  # Generate multiple images from the tranlsation.  # Generate multiple images from the tranlsation.
25  for i in range(0, 30):  for i in range(0, 30):

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

  ViewVC Help
Powered by ViewVC 1.1.26