42 |
|
VOIDID, |
43 |
|
SAMPDENS, |
44 |
|
NSAMPS, |
45 |
+ |
0., |
46 |
|
}; |
47 |
|
|
48 |
|
char matcheck[MAXSTR]; /* current material to include or exclude */ |
147 |
|
/* set up signal handling */ |
148 |
|
signal(SIGPIPE, quit); |
149 |
|
/* start rtrace process */ |
150 |
+ |
errno = 0; |
151 |
|
maxbytes = open_process(rt.pd, rtargv); |
152 |
|
if (maxbytes == 0) { |
153 |
|
eputs(rtargv[0]); |
331 |
|
break; |
332 |
|
cp++; |
333 |
|
continue; |
334 |
+ |
case 'b': /* brightness */ |
335 |
+ |
if (*++cp != '=') |
336 |
+ |
break; |
337 |
+ |
if (!isfltd(++cp, " \t\n")) |
338 |
+ |
break; |
339 |
+ |
thisillum.minbrt = atof(cp); |
340 |
+ |
if (thisillum.minbrt < 0.) |
341 |
+ |
thisillum.minbrt = 0.; |
342 |
+ |
cp = sskip(cp); |
343 |
+ |
continue; |
344 |
|
case 'o': /* output file */ |
345 |
|
if (*++cp != '=') |
346 |
|
break; |
383 |
|
|
384 |
|
printopts() /* print out option default values */ |
385 |
|
{ |
386 |
< |
printf("m=%s\t\t\t# material name\n", thisillum.matname); |
387 |
< |
printf("f=%s\t\t\t# data file name\n", thisillum.datafile); |
386 |
> |
printf("m=%-15s\t\t# material name\n", thisillum.matname); |
387 |
> |
printf("f=%-15s\t\t# data file name\n", thisillum.datafile); |
388 |
|
printf("c=n\t\t\t\t# color none\n"); |
389 |
|
printf("d=%d\t\t\t\t# density of points\n", thisillum.sampdens); |
390 |
|
printf("s=%d\t\t\t\t# samples per point\n", thisillum.nsamps); |
391 |
+ |
printf("b=%f\t\t\t# minimum average brightness\n", thisillum.minbrt); |
392 |
|
} |
393 |
|
|
394 |
|
|