Author: DavidCzech
Date: 2008-01-02 04:40:13 +0000 (Wed, 02 Jan 2008)
New Revision: 707

Modified:
   trunk/pysoy/tests/pyramid.py
Log:
__main__test

Modified: trunk/pysoy/tests/pyramid.py
===================================================================
--- trunk/pysoy/tests/pyramid.py        2008-01-02 03:34:58 UTC (rev 706)
+++ trunk/pysoy/tests/pyramid.py        2008-01-02 04:40:13 UTC (rev 707)
@@ -1,5 +1,4 @@
 import soy
-
 class Pyramid (soy.meshes.Mesh) :
   def __init__(self, tex=None) :
     mat0 = soy.materials.Material(ambient=soy.colors.BlueViolet(),
@@ -20,4 +19,14 @@
     soy.atoms.Face(self, verts=(a,e,b), material=mat1)
     soy.atoms.Face(self, verts=(d,c,b), material=mat2)
     soy.atoms.Face(self, verts=(e,d,b), material=mat2)
-
+if __name__ == "__main__":
+    sce = soy.Scene()
+    a = Pyramid()
+    scr = soy.Screen()
+    win = soy.Window(scr, 'Colored Blocks')
+    cam = soy.bodies.Camera(sce)
+    body = soy.bodies.Body(sce,mesh=a,position=(1,0,0))
+    cam.position = (0.0, 0.0, 5.0)
+    lig = soy.bodies.lights.Light(sce)
+    lig.position = (-10.0,10.0,2.0)
+    pro = soy.widgets.Projector(win, camera=cam)
\ No newline at end of file

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to