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

Contents of /trunk/pyvisi/drivers/driverlight.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: 550 byte(s)
drivers added
1 from scene import Scene
2 from datacollector import DataCollector
3 from camera import Camera
4 from map import Map
5 from light import Light
6 from constants import *
7
8 s = Scene(renderer = "vtk_online", x_size = 700, y_size = 600)
9 dc = DataCollector(scene = s, outline = True)
10 dc.setFileName(file_name = "../test/python/data_data/interior_3D.xml")
11
12 cam = Camera(scene = s, data_collector = dc)
13 cam.isometricView()
14 # Creates a light source.
15 lig = Light(scene = s, data_collector = dc)
16 lig.setColor(PURPLE)
17
18 map = Map(scene = s, data_collector = dc)
19 s.render()

  ViewVC Help
Powered by ViewVC 1.1.26