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

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

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

revision 1052 by jongui, Wed Mar 21 21:56:54 2007 UTC revision 1053 by jongui, Thu Mar 22 01:14:43 2007 UTC
# Line 13  dc1.setFileName(file_name = "/home/jongu Line 13  dc1.setFileName(file_name = "/home/jongu
13  # Create a velocity on plane clip instance.  # Create a velocity on plane clip instance.
14  vopc1 = VelocityOnPlaneClip(scene = s, data_collector = dc1,  vopc1 = VelocityOnPlaneClip(scene = s, data_collector = dc1,
15          arrow = Arrow.THREE_D, color_mode = ColorMode.SCALAR)          arrow = Arrow.THREE_D, color_mode = ColorMode.SCALAR)
16  vopc1.setScaleFactor(scale_factor = 200000)  vopc1.setScaleFactor(scale_factor = 800000)
17  vopc1.setPlaneToYZ()  vopc1.setPlaneToYZ()
18  vopc1.rotateY(angle = -70)  vopc1.rotateY(angle = -70)
19  vopc1.translate(x_offset = 0, y_offset = 0, z_offset = 0.3)  vopc1.translate(x_offset = 0, y_offset = 0, z_offset = 0.3)
20    vopc1.setRatio(10)
21    vopc1.randomOn()
22  #vopc1.setDimension(x = 7, y = 7, z = 7)  #vopc1.setDimension(x = 7, y = 7, z = 7)
23    
24  c = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)  c = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)

Legend:
Removed from v.1052  
changed lines
  Added in v.1053

  ViewVC Help
Powered by ViewVC 1.1.26