/[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 1056 by jongui, Fri Mar 16 05:15:37 2007 UTC revision 1057 by jongui, Thu Mar 22 23:57:37 2007 UTC
# Line 18  vopc1 = VelocityOnPlaneCut(scene = s, da Line 18  vopc1 = VelocityOnPlaneCut(scene = s, da
18          arrow = Arrow.THREE_D, color_mode = ColorMode.SCALAR)          arrow = Arrow.THREE_D, color_mode = ColorMode.SCALAR)
19  vopc1.setScaleFactor(scale_factor = 0.2)  vopc1.setScaleFactor(scale_factor = 0.2)
20  vopc1.setPlaneToYZ(offset = 2.999)  vopc1.setPlaneToYZ(offset = 2.999)
21  vopc1.setDimension(x = 1.5, y = 1.5, z = 1.5)  #vopc1.setDimension(x = 1.5, y = 1.5, z = 1.5)
22    vopc1.setRatio(2)
23    
24  sl1 = StreamLine(scene = s, data_collector = dc1,  sl1 = StreamLine(scene = s, data_collector = dc1,
25          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True,          viewport = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True,
# Line 31  eopc1.setScaleFactor(scale_factor = 0.1) Line 32  eopc1.setScaleFactor(scale_factor = 0.1)
32  eopc1.setPlaneToXZ()  eopc1.setPlaneToXZ()
33  eopc1.rotateX(angle = -40)  eopc1.rotateX(angle = -40)
34  eopc1.translate(x_offset = 0, y_offset = 0.2, z_offset = 0)  eopc1.translate(x_offset = 0, y_offset = 0.2, z_offset = 0)
35  eopc1.setDimension(x = 1, y = 1, z = 1)  #eopc1.setDimension(x = 1, y = 1, z = 1)
36    eopc1.setRatio(2)
37    
38  ctropc1 = ContourOnPlaneClip(scene = s, data_collector = dc1,  ctropc1 = ContourOnPlaneClip(scene = s, data_collector = dc1,
39          viewport  = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)          viewport  = Viewport.SOUTH_WEST, lut = Lut.COLOR, outline = True)

Legend:
Removed from v.1056  
changed lines
  Added in v.1057

  ViewVC Help
Powered by ViewVC 1.1.26