tuned ray-triangle intersection, now there are three algorithms to choose from:
Plucker, Barycentric and Barycentric with preprocessing (Wald)
methods in Vector and Shape (and derivates) made const
ifndef $(ROOT)
ROOT=$(shell pwd)/..
endif
all: models
models: bunny happy dragon
bunny:
wget ftp://graphics.stanford.edu/pub/3Dscanrep/bunny.tar.gz
tar xzf bunny.tar.gz
rm bunny.tar.gz
rm -rf bunny/data
mv bunny/reconstruction/* bunny
rmdir bunny/reconstruction
happy:
wget ftp://graphics.stanford.edu/pub/3Dscanrep/happy/happy_recon.tar.gz
tar xzf happy_recon.tar.gz
rm happy_recon.tar.gz
mv happy_recon happy
dragon:
wget ftp://graphics.stanford.edu/pub/3Dscanrep/dragon/dragon_recon.tar.gz
tar xzf dragon_recon.tar.gz
rm dragon_recon.tar.gz
mv dragon_recon dragon
clean: ;
distclean:
rm -rf bunny
rm -rf happy
rm -rf dragon