| 299 |
|
goto badopt; |
| 300 |
|
} |
| 301 |
|
} |
| 302 |
+ |
/* set/check spectral sampling */ |
| 303 |
+ |
rval = setspectrsamp(CNDX, WLPART); |
| 304 |
+ |
if (rval < 0) |
| 305 |
+ |
error(USER, "unsupported spectral sampling"); |
| 306 |
+ |
if (out_prims != NULL) { |
| 307 |
+ |
if (!rval) |
| 308 |
+ |
error(WARNING, "spectral range incompatible with color output"); |
| 309 |
+ |
} else if (NCSAMP == 3) |
| 310 |
+ |
out_prims = stdprims; /* 3 samples do not a spectrum make */ |
| 311 |
|
/* set up signal handling */ |
| 312 |
|
sigdie(SIGINT, "Interrupt"); |
| 313 |
|
#ifdef SIGHUP |
| 364 |
|
if ((outform == 'f') | (outform == 'd')) |
| 365 |
|
fputendian(stdout); |
| 366 |
|
fputformat(formstr(outform), stdout); |
| 367 |
< |
putchar('\n'); |
| 367 |
> |
fputc('\n', stdout); /* end of header */ |
| 368 |
|
} |
| 369 |
|
rtrace(NULL, nproc); /* trace rays */ |
| 370 |
|
quit(0); /* clean up & exit */ |