-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdumpall.sh
executable file
·37 lines (36 loc) · 926 Bytes
/
dumpall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
degree=11
maxcoeff=40
./genpoly $degree sorted.poly
suffix=""
lenses=$1
if [ "$1" == "" ]
then
lenses=lenses/*.fx
fi
for i in $lenses
do
lens1=${i#*/}
lens=${lens1%.*}
echo '[' $lens ']'
./fit $i $degree $maxcoeff
./gencode $i
./view $i -o
./fresnel $i
# ./sample-plot $i
# rm -f lt-aperture-sampling
# make lensname=$lens lt-aperture-sampling
# ./lt-aperture-sampling
gnuplot -e "lens=\"$i\"" fresnel.plt
# gnuplot -e "lens=\"$i\"" sample-plot.plt
# gnuplot -e "lens=\"$i\"" convergence.plt
mv screenshot.pdf lenses/${lens}.pdf
mv fresnel-profile.pdf lenses/${lens}-zzz-fresnel.pdf
# mv sample-plot.pdf lenses/${lens}-zzz-samples.pdf
# mv convergence-profile.pdf lenses/${lens}-zzz-convergence-profile.pdf
# mv convergence.pdf lenses/${lens}-zzz-convergence.pdf
echo ""
mkdir -p render/${lens}${suffix}
mv *.h render/${lens}${suffix}/
done
pdftk lenses/*pdf cat output lenses.pdf