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

Contents of /trunk/pyvisi/drivers/drivermaponplane.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: 668 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)
9 dc.setFileName(file_name = "../test/python/data_data/interior_3D.xml")
10
11 cam = Camera(scene = s, data_collector = dc)
12 cam.elevation(angle = -65)
13 # Transform is used to change the plane's settings.
14 tf = Transform()
15 # Change the plane's default settings.
16 #tf.rotateX(angle = 15)
17 #tf.xyPlane(offset = 0.5)
18
19 # Create a surface map on a plane.
20 mop = MapOnPlane(scene = s, data_collector = dc, transform = tf)
21 s.render()

  ViewVC Help
Powered by ViewVC 1.1.26