/[escript]/trunk/pyvisi/py_src/tempcarpet.py
ViewVC logotype

Annotation of /trunk/pyvisi/py_src/tempcarpet.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (hide annotations)
Tue Nov 7 23:42:31 2006 UTC (12 years, 9 months ago) by jongui
File MIME type: text/x-python
File size: 649 byte(s)
drivers added
1 jongui 889 from scene import Scene
2     from datacollector import DataCollector
3     from camera import Camera
4     from carpet import Carpet
5     from geo import Transform
6    
7     s = Scene(renderer = "vtk_online", x_size = 1000, y_size = 800)
8     dc = DataCollector(scene = s, outline = True)
9     dc.setFileName(file_name = "../../../data/lutz/seismic/disp.699.vtu")
10    
11     cam = Camera(scene = s, data_collector = dc)
12     cam.isometricView()
13     cam.elevation(angle = -20)
14     tf = Transform()
15     tf.xyPlane(offset = -25000)
16    
17     # Create a carpet for scalar data.
18     cpt = Carpet(scene = s, data_collector = dc, transform = tf, deform = "Scalar")
19     # Set the carpet's scale factor.
20     cpt.setScaleFactor(100000)
21     s.render()
22    

  ViewVC Help
Powered by ViewVC 1.1.26