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

Annotation of /trunk/pyvisi/drivers/driverstreamlines.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: 520 byte(s)
drivers added
1 jongui 889 from scene import Scene
2     from datacollector import DataCollector
3     from camera import Camera
4     from streamlines import StreamLines
5    
6     s = Scene(renderer = "vtk_online", x_size = 1000, y_size = 800)
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(-50)
12    
13     # Create streamlines
14     sl = StreamLines(scene = s, data_collector = dc)
15     # Change the streamlines default accuracy.
16     sl.setAccuracy(0.2)
17     s.render()
18    

  ViewVC Help
Powered by ViewVC 1.1.26