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

Annotation of /trunk/pyvisi/py_src/examples/carpet.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1038 - (hide annotations)
Fri Mar 16 05:15:37 2007 UTC (13 years, 4 months ago) by jongui
File MIME type: text/x-python
File size: 677 byte(s)
Added more examples.
1 jongui 1038 from esys.pyvisi import Scene, DataCollector, Carpet, Camera
2     from esys.pyvisi.constant import *
3    
4     s = Scene(renderer = Renderer.ONLINE, num_viewport = 1, x_size = 1152,
5     y_size = 864)
6    
7     dc1 = DataCollector(source = Source.XML)
8     dc1.setFileName(file_name =
9     "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")
10     dc1.setActiveScalar(scalar = "temperature_cell")
11    
12     # Create one carpet instance.
13     cpt1 = Carpet(scene = s, data_collector = dc1, warp_mode = WarpMode.VECTOR,
14     lut = Lut.COLOR)
15     cpt1.setPlaneToXY(0.5)
16     cpt1.setScaleFactor(0.5)
17    
18     c1 = Camera(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)
19     c1.isometricView()
20    
21     s.render()
22    

  ViewVC Help
Powered by ViewVC 1.1.26