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

Contents of /trunk/pyvisi/py_src/tempcarpet2.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (show annotations)
Tue Nov 7 23:42:31 2006 UTC (15 years ago) by jongui
File MIME type: text/x-python
File size: 837 byte(s)
drivers added
1 from scene import Scene
2 from datacollector import DataCollector
3 from camera import Camera
4 from map import MapOnPlane
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, cube_axes = True)
9 dc.setFileName(file_name = "../../../data/lutz/seismic/disp.0.vtu")
10 #dc.setFileName(file_name = "../test/python/data_data/interior_3D.xml")
11 #dc.setFileName(file_name = "../../../data/laurent/clipper/phi3D.initial.vtk")
12
13 cam = Camera(scene = s, data_collector = dc)
14 cam.elevation(angle = -65)
15 # Transform is used to change the plane's settings.
16 tf = Transform()
17 # Change the plane's default settings.
18 #tf.rotateX(angle = 15)
19 #tf.xyPlane(offset = -10000)
20
21 # Create a surface map on a plane.
22 mop = MapOnPlane(scene = s, data_collector = dc, transform = tf)
23 s.render()

  ViewVC Help
Powered by ViewVC 1.1.26