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

Diff of /trunk/pyvisi/py_src/examples/velocityonplanecut.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 5  s = Scene(renderer = Renderer.ONLINE, nu Line 5  s = Scene(renderer = Renderer.ONLINE, nu
5          y_size = 864)          y_size = 864)
6    
7  dc1 = DataCollector(source = Source.XML)  dc1 = DataCollector(source = Source.XML)
8    #dc1.setFileName(file_name =
9  dc1.setFileName(file_name = "/home/jongui/data/laurent/slab/source/slab.xml")  dc1.setFileName(file_name = "/home/jongui/data/laurent/slab/source/slab.xml")
10    #        "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")
11    #dc1.setActiveVector("velocity_cell")
12    
13  # NOTE: There is a difference between performing rotation then followed by  # NOTE: There is a difference between performing rotation then followed by
14  # translation and performing translation then followed by rotation.  # translation and performing translation then followed by rotation.
15    
16  # Create a velocity instance.  # Create a velocity instance.
17  vopc1 = VelocityOnPlaneCut(scene = s, data_collector = dc1,  vopc1 = VelocityOnPlaneCut(scene = s, data_collector = dc1,
18          color_mode = ColorMode.VECTOR)          arrow = Arrow.THREE_D, color_mode = ColorMode.VECTOR)
19  vopc1.setScaleFactor(scale_factor = 120000)  vopc1.setScaleFactor(scale_factor = 100000)
20    #vopc1.setPlaneToXY(50000)
21  vopc1.setPlaneToXY()  vopc1.setPlaneToXY()
22    vopc1.setRatio(3)
23    vopc1.randomOn()
24  #vopc1.setDimension(x = 4, y = 4, z = 4)  #vopc1.setDimension(x = 4, y = 4, z = 4)
25    
26  s.render()  s.render()

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

  ViewVC Help
Powered by ViewVC 1.1.26