13 |
|
#include "rtprocess.h" /* getpid() */ |
14 |
|
#include "resolu.h" |
15 |
|
#include "ray.h" |
16 |
+ |
#include "func.h" |
17 |
|
#include "source.h" |
18 |
|
#include "ambient.h" |
19 |
|
#include "random.h" |
115 |
|
strcat(RFeatureList, RTRACE_FEATURES); |
116 |
|
if (argc > 1 && !strcmp(argv[1], "-features")) |
117 |
|
return feature_status(argc-2, argv+2); |
118 |
+ |
/* initialize calcomp routines */ |
119 |
+ |
initfunc(); |
120 |
|
/* add trace notify function */ |
121 |
|
for (i = 0; addobjnotify[i] != NULL; i++) |
122 |
|
; |
351 |
|
rval = setspectrsamp(CNDX, WLPART); |
352 |
|
if (rval < 0) |
353 |
|
error(USER, "unsupported spectral sampling"); |
354 |
< |
if (out_prims != NULL) { |
354 |
> |
if (sens_curve != NULL) |
355 |
> |
out_prims = NULL; |
356 |
> |
else if (out_prims != NULL) { |
357 |
|
if (!rval) |
358 |
|
error(WARNING, "spectral range incompatible with color output"); |
359 |
|
} else if (NCSAMP == 3) |
513 |
|
) |
514 |
|
{ |
515 |
|
int lasterrno = errno; |
516 |
+ |
if (erract[WARNING].pf == NULL) |
517 |
+ |
return; /* called by calcomp or someone */ |
518 |
|
eputs(s); |
519 |
|
errno = lasterrno; |
520 |
|
} |