10 |
|
IMG_CMP = radcompare -rms 0.07 -max 1.5 |
11 |
|
|
12 |
|
# Default target is to test everything |
13 |
< |
all: test-xform \ |
13 |
> |
all: test-xform test-rfluxmtx \ |
14 |
|
test-mixtex-def test-mixtex-fish test-mixtex-plan test-mixtex-rplan \ |
15 |
|
test-trans2-def test-trans2-fish test-dielectric-def \ |
16 |
|
test-dielectric-fish test-glass-def test-glass-fish test-glass-up \ |
17 |
|
test-tfunc-def test-tfunc-fish test-inst-def test-inst-fish \ |
18 |
|
test-mesh-def test-mesh-cyl test-mirror-fish test-mist-def \ |
19 |
< |
test-trans-def test-trans-fish test-patterns-def test-patterns-plan |
19 |
> |
test-trans-def test-trans-fish test-patterns-def test-patterns-plan \ |
20 |
> |
test-rtrace |
21 |
|
|
22 |
|
clean: |
23 |
|
rm -f *.oct *.amb *_ill.dat blinds_ill?.dat *_*.hdr *.unf \ |
24 |
< |
*.[cg]pm{,.leaf} combined.rad |
24 |
> |
*.[cg]pm{,.leaf} combined.rad rfmirror.mtx |
25 |
|
|
26 |
< |
# Special test of xform |
26 |
> |
### Special test of xform ### |
27 |
|
|
28 |
|
test-xform: combined_scene.rad |
29 |
|
xform -f combined_scene.rad | grep -v '^[ ]*#' > combined.rad |
30 |
|
radcompare -max 0.04 ref/combined.rad combined.rad |
31 |
+ |
|
32 |
+ |
### Special test of rtrace ### |
33 |
+ |
|
34 |
+ |
test-rtrace: ref/mirror_fish.hdr rtmirror_fish.hdr |
35 |
+ |
$(RDU_PFILT) rtmirror_fish.hdr | $(IMG_CMP) -h ref/mirror_fish.hdr - |
36 |
+ |
|
37 |
+ |
rtmirror_fish.hdr: mirror.oct |
38 |
+ |
rad -v 0 mirror.rif OPT=mirror.opt |
39 |
+ |
vwrays -ff -vf fish.vf -x 2048 -y 2048 | rtrace -n 2 @mirror.opt \ |
40 |
+ |
-ffc -x 2048 -y 2048 mirror.oct | pfilt -1 -e +3 -r .6 -x /2 -y /2 \ |
41 |
+ |
> rtmirror_fish.hdr |
42 |
+ |
rm -f mirror.opt |
43 |
+ |
|
44 |
+ |
### Special test for rfluxmtx (and rcontrib) ### |
45 |
+ |
|
46 |
+ |
test-rfluxmtx: ref/rfmirror.mtx rfmirror.mtx |
47 |
+ |
radcompare -max .4 -rms .05 ref/rfmirror.mtx rfmirror.mtx |
48 |
+ |
|
49 |
+ |
rfmirror.mtx: mirror.rad dummysky.rad basic.mat diorama_walls.rad \ |
50 |
+ |
closed_end.rad front_cap.rad glass_pane.rad antimatter_portal.rad |
51 |
+ |
rfluxmtx -ab 2 -lw 1e-4 mirror.rad dummysky.rad basic.mat \ |
52 |
+ |
diorama_walls.rad closed_end.rad front_cap.rad glass_pane.rad \ |
53 |
+ |
antimatter_portal.rad > rfmirror.mtx |
54 |
|
|
55 |
|
### Octree for dielectric ### |
56 |
|
|