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

Contents of /trunk/pyvisi/drivers/driverisosurface.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: 548 byte(s)
drivers added
1 from scene import Scene
2 from datacollector import DataCollector
3 from camera import Camera
4 from isosurface import IsoSurface
5
6 s = Scene(renderer = "vtk_online", x_size = 800, y_size = 600)
7 dc = DataCollector(scene = s, outline = True)
8 dc.setFileName(file_name = "../test/python/data_data/interior_3D.xml")
9
10 cam = Camera(scene = s, data_collector = dc)
11 cam.elevation(angle = -30)
12
13 # Create an iso surface.
14 iso = IsoSurface(scene = s, data_collector = dc)
15 # Sets the contour number and value.
16 iso.setValue(contour_number = 1, value = 0.1)
17 s.render()
18

  ViewVC Help
Powered by ViewVC 1.1.26