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

Annotation of /trunk/pyvisi/drivers/drivercontour.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 889 - (hide annotations)
Tue Nov 7 23:42:31 2006 UTC (14 years, 5 months ago) by jongui
File MIME type: text/x-python
File size: 569 byte(s)
drivers added
1 jongui 889 from scene import Scene
2     from datacollector import DataCollector
3     from camera import Camera
4     from contour import Contour
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     # Creates contours.
14     c = Contour(scene = s, data_collector = dc)
15     # Specify the number of contours and the range.
16     c.generateValues(number_contours = 5, min_range = 0.0, max_range = 1.2)
17     s.render()
18    

  ViewVC Help
Powered by ViewVC 1.1.26