branch | pyrit |
changeset 41 | c1080cb5bd6d |
parent 29 | 574c34441a1c |
child 75 | 20dee9819b17 |
40:929aad02c5f2 | 41:c1080cb5bd6d |
---|---|
1 # Wavefron .obj file loader |
|
2 |
|
1 from raytracer import Triangle, NormalVertex |
3 from raytracer import Triangle, NormalVertex |
2 |
4 |
3 def LoadWavefrontObjFile(rt, filename, mat, scale): |
5 def LoadWavefrontObjFile(rt, filename, mat, scale): |
4 vertices = [] |
6 vertices = [] |
5 fp = file(filename) |
7 fp = file(filename) |