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

Contents of /trunk/pyvisi/drivers/driveroffline.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: 578 byte(s)
drivers added
1 from scene import Scene
2 from datacollector import DataCollector
3 from map import MapOnPlane
4 from camera import Camera
5 from geo import Transform
6
7 s = Scene(renderer = "vtk_jpeg", x_size = 800, y_size = 600)
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 tf = Transform()
13 tf.yzPlane(offset = 1)
14 mop = MapOnPlane(scene = s, data_collector = dc, transform = tf)
15
16 # Perform offline rendering and saving the rendered object as an image.
17 s.saveImage("save_image.jpg")
18

  ViewVC Help
Powered by ViewVC 1.1.26