/[escript]/trunk/pyvisi/py_src/examples/offline.py
ViewVC logotype

Contents of /trunk/pyvisi/py_src/examples/offline.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1038 - (show annotations)
Fri Mar 16 05:15:37 2007 UTC (14 years, 1 month ago) by jongui
File MIME type: text/x-python
File size: 455 byte(s)
Added more examples.
1 from esys.pyvisi import Scene, DataCollector, Map
2 from esys.pyvisi.constant import *
3
4 s = Scene(renderer = Renderer.OFFLINE_JPG, x_size = 800, y_size = 600)
5
6 dc1 = DataCollector(source = Source.XML)
7 dc1.setFileName(file_name =
8 "/home/jongui/trunk/pyvisi/test/python/data_data/interior_3D.xml")
9
10 m1 = Map(scene = s, data_collector = dc1, viewport = Viewport.SOUTH_WEST)
11
12 # Save the rendered object into an image.
13 s.saveImage("offline_image.jpg")
14

  ViewVC Help
Powered by ViewVC 1.1.26