demos/bunny.py
branchpyrit
changeset 60 a23b5089b9c3
parent 46 6493fb65f0b1
child 62 07c2f8084719
equal deleted inserted replaced
59:64e456ab823d 60:a23b5089b9c3
     1 #!/usr/bin/python
     1 #!/usr/bin/python
     2 
     2 
     3 # this demo needs bunny model from
     3 # this demo needs bunny model from
     4 # http://graphics.stanford.edu/data/3Dscanrep/
     4 # http://graphics.stanford.edu/data/3Dscanrep/
     5 
       
     6 import sys
       
     7 sys.path.append(open('ModulePath').read().strip())
       
     8 
     5 
     9 from raytracer import Raytracer, Light, Box, Triangle, Material
     6 from raytracer import Raytracer, Light, Box, Triangle, Material
    10 from plyreader import LoadStanfordPlyFile
     7 from plyreader import LoadStanfordPlyFile
    11 import Image
     8 import Image
    12 
     9