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

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

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

revision 1001 by jongui, Fri Feb 23 03:35:33 2007 UTC revision 1002 by jongui, Wed Feb 28 06:51:33 2007 UTC
# Line 25  sl1 = StreamLine(scene = s, data_collect Line 25  sl1 = StreamLine(scene = s, data_collect
25          color_mode = ColorMode.SCALAR)          color_mode = ColorMode.SCALAR)
26  sl1.setTubeRadius(radius = 0.02)  sl1.setTubeRadius(radius = 0.02)
27    
28  eopc1 = EllipsoidOnPlaneCut(scene = s, data_collector = dc1, tensor = None,  eopc1 = EllipsoidOnPlaneCut(scene = s, data_collector = dc1,
29          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)
30  eopc1.setScaleFactor(scale_factor = 0.1)  eopc1.setScaleFactor(scale_factor = 0.1)
31  eopc1.setPlaneToXZ()  eopc1.setPlaneToXZ()
# Line 33  eopc1.rotateX(angle = -45) Line 33  eopc1.rotateX(angle = -45)
33  eopc1.translate(x_offset = 0, y_offset = 0.2, z_offset = 0)  eopc1.translate(x_offset = 0, y_offset = 0.2, z_offset = 0)
34  eopc1.setDimension(x = 1, y = 1, z = 1)  eopc1.setDimension(x = 1, y = 1, z = 1)
35    
36  ctropc1 = ContourOnPlaneClip(scene = s, data_collector = dc1, scalar = None,  ctropc1 = ContourOnPlaneClip(scene = s, data_collector = dc1,
37          viewport  = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)          viewport  = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)
38  ctropc1.setPlaneToXY()  ctropc1.setPlaneToXY()
39  ctropc1.rotateY(angle = 10)  ctropc1.rotateY(angle = 10)

Legend:
Removed from v.1001  
changed lines
  Added in v.1002

  ViewVC Help
Powered by ViewVC 1.1.26