--- a/demos/triangles_sphere.py Fri Dec 07 16:39:42 2007 +0100
+++ b/demos/triangles_sphere.py Sat Dec 08 12:37:45 2007 +0100
@@ -3,7 +3,7 @@
import sys
sys.path.append(open('ModulePath').read().strip())
-from raytracer import Raytracer, Light, Sphere, Triangle, Material
+from raytracer import Raytracer, Light, Sphere, Triangle, NormalVertex, Material
import Image
def LoadWavefrontObjFile(rt, mat, filename):
@@ -19,7 +19,7 @@
vertices.append(tuple(v))
if ln[0] == "f":
f = [vertices[int(x)-1] for x in ln[1:4]]
- face = Triangle(f[0], f[1], f[2], mat)
+ face = Triangle(NormalVertex(f[0]), NormalVertex(f[1]), NormalVertex(f[2]), mat)
rt.addshape(face)
rt = Raytracer()