demos/dragon.py
branchpyrit
changeset 28 ffe83ca074f3
parent 25 b8232edee786
child 29 574c34441a1c
--- a/demos/dragon.py	Fri Dec 07 16:39:42 2007 +0100
+++ b/demos/dragon.py	Sat Dec 08 12:37:45 2007 +0100
@@ -38,13 +38,13 @@
 		if (tokens[0] != "3"):
 			print "ply warning: faces of %d vertices not supported" % tokens[0]
 		f = [vertices[int(x)] for x in tokens[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)
 		face_num -= 1
 
 rt = Raytracer()
 mat = Material(colour=(0.9, 0.9, 0.9))
-LoadStanfordPlyFile(rt, mat, "../models/dragon/dragon_vrip_res4.ply", 29.0)
+LoadStanfordPlyFile(rt, mat, "../models/dragon/dragon_vrip_res2.ply", 29.0)
 
 light1 = Light(position=(-5.0, 2.0, 8.0), colour=(0.9, 0.3, 0.2))
 rt.addlight(light1)