26 |
|
struct illum_args thisillum = { /* our illum and default values */ |
27 |
|
0, |
28 |
|
UDzpos, |
29 |
+ |
0., |
30 |
|
DFLMAT, |
31 |
|
DFLDAT, |
32 |
|
0, |
394 |
|
if (thisillum.udir == UDunknown || !isspace(*cp)) |
395 |
|
break; |
396 |
|
continue; |
397 |
+ |
case 't': /* object thickness */ |
398 |
+ |
if (*++cp != '=') |
399 |
+ |
break; |
400 |
+ |
if (!isfltd(++cp, " \t\n\r")) |
401 |
+ |
break; |
402 |
+ |
thisillum.thick = atof(cp); |
403 |
+ |
if (thisillum.thick < .0) |
404 |
+ |
thisillum.thick = .0; |
405 |
+ |
cp = sskip(cp); |
406 |
+ |
continue; |
407 |
|
case '!': /* processed file! */ |
408 |
|
sprintf(errmsg, "(%s): already processed!", nm); |
409 |
|
error(WARNING, errmsg); |
471 |
|
case UDunknown: |
472 |
|
break; |
473 |
|
} |
474 |
+ |
printf("t=%f\t\t\t# object thickness\n", thisillum.thick); |
475 |
|
} |
476 |
|
|
477 |
|
|