/[escript]/trunk/pyvisi/drivers/drivercarpet.py
ViewVC logotype

Contents of /trunk/pyvisi/drivers/drivercarpet.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (show annotations)
Tue Nov 7 23:42:31 2006 UTC (14 years, 3 months ago) by jongui
File MIME type: text/x-python
File size: 648 byte(s)
drivers added
1 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 = 700, y_size = 600)
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