demos/plyreader.py
branchpyrit
changeset 75 20dee9819b17
parent 69 303583d2fb97
child 90 f6a72eb99631
equal deleted inserted replaced
74:09aedbf5f95f 75:20dee9819b17
    42 		n = face.getNormal()
    42 		n = face.getNormal()
    43 		for x in tokens[1:4]:
    43 		for x in tokens[1:4]:
    44 			for i in range(3):
    44 			for i in range(3):
    45 				normals[int(x)][i] += n[i]
    45 				normals[int(x)][i] += n[i]
    46 			vertex_face_num[int(x)] += 1
    46 			vertex_face_num[int(x)] += 1
    47 		rt.addshape(face)
    47 		rt.addShape(face)
    48 		face_num -= 1
    48 		face_num -= 1
    49 
    49 
    50 	# interpolate normals at vertices
    50 	# interpolate normals at vertices
    51 	num = 0
    51 	num = 0
    52 	while (num < vertex_num):
    52 	while (num < vertex_num):