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]); |
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 */ |
385 |
|
{ |
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"); |
388 |
> |
if (thisillum.flags & IL_COLAVG) |
389 |
> |
if (thisillum.flags & IL_COLDST) |
390 |
> |
printf("c=d\t\t\t\t# color distribution\n"); |
391 |
> |
else |
392 |
> |
printf("c=a\t\t\t\t# color average\n"); |
393 |
> |
else |
394 |
> |
printf("c=n\t\t\t\t# color none\n"); |
395 |
> |
if (thisillum.flags & IL_LIGHT) |
396 |
> |
printf("l+\t\t\t\t# light type on\n"); |
397 |
> |
else |
398 |
> |
printf("l-\t\t\t\t# light type off\n"); |
399 |
|
printf("d=%d\t\t\t\t# density of points\n", thisillum.sampdens); |
400 |
|
printf("s=%d\t\t\t\t# samples per point\n", thisillum.nsamps); |
401 |
|
printf("b=%f\t\t\t# minimum average brightness\n", thisillum.minbrt); |