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

Contents of /trunk/pyvisi/drivers/drivermaponscalarclip.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: 520 byte(s)
drivers added
1 from scene import Scene
2 from datacollector import DataCollector
3 from camera import Camera
4 from map import MapOnClip, MapOnScalarClip
5
6 s = Scene(renderer = "vtk_online", x_size = 500, y_size = 600)
7 dc = DataCollector(scene = s, outline = True)
8 dc.setFileName(file_name = "../../../data/laurent/clipper/phi3D.initial.vtk")
9
10 cam = Camera(scene = s, data_collector = dc)
11 cam.elevation(angle = -60)
12 cam.azimuth(angle = -20)
13
14 # Create a map on a scalar clip.
15 moc = MapOnScalarClip(scene = s, data_collector = dc)
16 s.render()
17
18

  ViewVC Help
Powered by ViewVC 1.1.26