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

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

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

revision 991 by jongui, Tue Feb 13 02:03:23 2007 UTC revision 992 by jongui, Fri Feb 23 03:35:33 2007 UTC
# Line 14  dc1.setFileName(file_name = Line 14  dc1.setFileName(file_name =
14  # Create one ellipsoid on plance cut instance.  # Create one ellipsoid on plance cut instance.
15  eopc1 = EllipsoidOnPlaneCut(scene = s, data_collector = dc1, tensor = None,  eopc1 = EllipsoidOnPlaneCut(scene = s, data_collector = dc1, tensor = None,
16          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)
17  eopc1.setScaleFactor(0.1)  eopc1.setScaleFactor(scale_factor = 0.1)
18  eopc1.setPlaneToXY()  eopc1.setPlaneToXY()
19  eopc1.rotateX(20)  eopc1.rotateX(angle = 20)
20  eopc1.setDimension(2,2,2)  eopc1.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.isometricView()  c1.isometricView()
24  c1.elevation(-20)  c1.elevation(angle = -20)
25    
26  s.render()  s.render()
27    

Legend:
Removed from v.991  
changed lines
  Added in v.992

  ViewVC Help
Powered by ViewVC 1.1.26