| 124 |
|
#ifdef DEBUG |
| 125 |
|
if (inpXML) |
| 126 |
|
fprintf(stderr, "Hemispherical %s: %.3f\n", |
| 127 |
< |
(output_orient > 0 ? "reflection" : "transmission"), |
| 127 |
> |
(output_orient > 0 ^ input_orient > 0 ? |
| 128 |
> |
"transmission" : "reflection"), |
| 129 |
|
SDdirectHemi(idir, SDsampSp|SDsampDf | |
| 130 |
< |
(output_orient > 0 ? |
| 131 |
< |
SDsampR : SDsampT), &myBSDF)); |
| 130 |
> |
(output_orient > 0 ^ input_orient > 0 ? |
| 131 |
> |
SDsampT : SDsampR), &myBSDF)); |
| 132 |
|
else if (rbf == NULL) |
| 133 |
|
fputs("Empty RBF\n", stderr); |
| 134 |
|
else |
| 135 |
|
fprintf(stderr, "Hemispherical %s: %.3f\n", |
| 136 |
< |
(output_orient > 0 ? "reflection" : "transmission"), |
| 136 |
> |
(output_orient > 0 ^ input_orient > 0 ? |
| 137 |
> |
"transmission" : "reflection"), |
| 138 |
|
rbf->vtotal); |
| 139 |
|
#endif |
| 140 |
+ |
printf("# Incident direction (theta,phi) = (%.2f,%.2f) deg.\n\n", |
| 141 |
+ |
(180./M_PI)*theta, (180./M_PI)*phi); |
| 142 |
|
printf("void trans tmat\n0\n0\n7 %f %f %f .04 .04 .9 1\n", |
| 143 |
|
colarr[n][0], colarr[n][1], colarr[n][2]); |
| 144 |
|
if (showPeaks && rbf != NULL) { |