branch | pyrit |
changeset 97 | 2a853d284a6a |
parent 90 | f6a72eb99631 |
96:9eb71e76c7fd | 97:2a853d284a6a |
---|---|
269 else: |
269 else: |
270 v = [vertices[x] for x in f[0:3]] |
270 v = [vertices[x] for x in f[0:3]] |
271 matidx = f[3]-1 |
271 matidx = f[3]-1 |
272 face = Triangle(v[0], v[1], v[2], materials[matidx]) |
272 face = Triangle(v[0], v[1], v[2], materials[matidx]) |
273 rt.addShape(face) |
273 rt.addShape(face) |
274 |
|
275 return len(faces) |