demos/lworeader.py
branchpyrit
changeset 75 20dee9819b17
parent 72 7c3f38dff082
child 90 f6a72eb99631
equal deleted inserted replaced
74:09aedbf5f95f 75:20dee9819b17
   268 			v = [vertices[x] for x in f[4:7]]
   268 			v = [vertices[x] for x in f[4:7]]
   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)