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

Contents of /trunk/pyvisi/drivers/drivertensor.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: 528 byte(s)
drivers added
1 from scene import Scene
2 from datacollector import DataCollector
3 from camera import Camera
4 from tensor import Tensor
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 = -50)
12
13 # Create ellipsoids.
14 t = Tensor(scene = s, data_collector = dc)
15 # Change the tensor's default scale factor.
16 t.setScaleFactor(scale_factor = 0.1)
17 s.render()
18

  ViewVC Help
Powered by ViewVC 1.1.26