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

Diff of /trunk/pyvisi/py_src/examples/ellipsoidonplaneclip.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 on ellipsoid on plane clip instance.  # Create on ellipsoid on plane clip instance.
15  eopc = EllipsoidOnPlaneClip(scene = s, data_collector = dc1, tensor = None,  eopc = EllipsoidOnPlaneClip(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  eopc.setScaleFactor(0.1)  eopc.setScaleFactor(scale_factor = 0.1)
18  eopc.setPlaneToXY()  eopc.setPlaneToXY()
19  eopc.rotateX(20)  eopc.rotateX(angle = 20)
20  eopc.setDimension(2,2,2)  eopc.setDimension(x = 2,y = 2, z = 2)
21    
22  c1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)  c1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)
23  c1.bottomView()  c1.bottomView()
24  c1.azimuth(-90)  c1.azimuth(angle = -90)
25  c1.elevation(20)  c1.elevation(angle = 20)
26    
27  s.render()  s.render()
28    

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

  ViewVC Help
Powered by ViewVC 1.1.26