branch | pyrit |
changeset 90 | f6a72eb99631 |
parent 75 | 20dee9819b17 |
89:fcf1487b398b | 90:f6a72eb99631 |
---|---|
1 # Wavefron .obj file loader |
1 # Wavefron .obj file loader |
2 |
2 |
3 from raytracer import Triangle, NormalVertex |
3 from pyrit import Triangle, NormalVertex |
4 |
4 |
5 def LoadWavefrontObjFile(rt, filename, mat, scale): |
5 def LoadWavefrontObjFile(rt, filename, mat, scale): |
6 vertices = [] |
6 vertices = [] |
7 fp = file(filename) |
7 fp = file(filename) |
8 while True: |
8 while True: |