demos/plyreader.py
branchpyrit
changeset 69 303583d2fb97
parent 41 c1080cb5bd6d
child 75 20dee9819b17
--- a/demos/plyreader.py	Sat Apr 12 02:02:45 2008 +0200
+++ b/demos/plyreader.py	Mon Apr 14 12:51:50 2008 +0200
@@ -2,7 +2,7 @@
 
 from raytracer import Triangle, NormalVertex
 
-def LoadStanfordPlyFile(rt, filename, mat, smooth, scale=(1,1,1), trans=(0,0,0)):
+def LoadStanfordPlyFile(rt, filename, mat, scale=(1,1,1), trans=(0,0,0)):
 	if (type(scale) == float or type(scale) == int):
 		scale = (scale,)*3
 	vertices = []
@@ -44,8 +44,6 @@
 			for i in range(3):
 				normals[int(x)][i] += n[i]
 			vertex_face_num[int(x)] += 1
-		if (smooth):
-			face.setSmooth()
 		rt.addshape(face)
 		face_num -= 1