rename Python module from 'raytracer' to 'pyrit'
improve Python binding:
- new objects: Container, Octree, KdTree, Shape,
Pixmap, Sampler, DefaultSampler
- all shapes are now subclasses of Shape
- clean, remove redundant Getattr's
- Raytracer render method now just wraps C++ method
without doing any additional work
adjust all demos for changes in Python binding, remove PIL dependency
add demo_PIL.py as a example of pyrit + PIL usage
render_nff.py now either loads file given as a argument
or reads input from stdin otherwise
fix bug in pixmap float to char conversion
env = Environment()
env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)})
files = ['lwo/Nissan300ZX.lwo', 'obj/cube.obj', 'obj/sphere.obj', 'obj/monkey.obj']
l = []
for file in files:
l.append( env.Copy('#build/models/'+file, file) )
env.Alias('local-models', l)
plydir = Dir('#build/models/ply/')
Command(plydir, [], Dir('#models/').abspath+'/download-stanford $TARGET')
Clean(plydir, plydir)
env.Alias('download-models', plydir)
env.Alias('models', ['local-models', 'download-models'])