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

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

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

revision 962 by jongui, Tue Feb 13 02:03:23 2007 UTC revision 996 by jongui, Mon Feb 26 03:43:13 2007 UTC
# Line 12  dc1.setFileName(file_name = Line 12  dc1.setFileName(file_name =
12  # translation and performing translation then followed by rotation.  # translation and performing translation then followed by rotation.
13    
14  # Create one contour on plane cut instance.  # Create one contour on plane cut instance.
15  ctropc1 = ContourOnPlaneCut(scene = s, data_collector = dc1, scalar = None,  ctropc1 = ContourOnPlaneCut(scene = s, data_collector = dc1,
16          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)
17  ctropc1.generateContours(8)  ctropc1.generateContours(contours = 8)
18  ctropc1.setPlaneToXY(200000)  ctropc1.setPlaneToXY(offset = 200000)
19    
20  c1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)  c1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)
21  c1.elevation(-45)  c1.elevation(angle = -45)
22    
23  s.render()  s.render()
24    

Legend:
Removed from v.962  
changed lines
  Added in v.996

  ViewVC Help
Powered by ViewVC 1.1.26