equal
deleted
inserted
replaced
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): |