24 |
|
|
25 |
|
struct illum_args thisillum = { /* our illum and default values */ |
26 |
|
0, |
27 |
– |
0., |
27 |
|
DFLMAT, |
28 |
|
DFLDAT, |
29 |
|
0, |
359 |
|
} |
360 |
|
doneheader = 0; |
361 |
|
continue; |
363 |
– |
case 't': /* object thickness */ |
364 |
– |
if (*++cp != '=') |
365 |
– |
break; |
366 |
– |
if (!isfltd(++cp, " \t\n\r")) |
367 |
– |
break; |
368 |
– |
thisillum.thick = atof(cp); |
369 |
– |
if (thisillum.thick < .0) |
370 |
– |
thisillum.thick = .0; |
371 |
– |
cp = sskip(cp); |
372 |
– |
continue; |
362 |
|
case '!': /* processed file! */ |
363 |
|
sprintf(errmsg, "(%s): already processed!", nm); |
364 |
|
error(WARNING, errmsg); |
404 |
|
printf("d=%d\t\t\t\t# density of directions\n", thisillum.sampdens); |
405 |
|
printf("s=%d\t\t\t\t# samples per direction\n", thisillum.nsamps); |
406 |
|
printf("b=%f\t\t\t# minimum average brightness\n", thisillum.minbrt); |
418 |
– |
printf("t=%f\t\t\t# object thickness\n", thisillum.thick); |
407 |
|
} |
408 |
|
|
409 |
|
|