7 |
|
|
8 |
|
#include "ray.h" |
9 |
|
#include "random.h" |
10 |
+ |
#include "resolu.h" |
11 |
|
|
12 |
|
#define NTRUNKBR 4 /* number of branches at trunk */ |
13 |
|
#define NTRUNKVERT 4 /* number of vertices at trunk */ |
29 |
|
COLOR intens; /* output times solid angle */ |
30 |
|
} LOSTLIGHT; |
31 |
|
|
32 |
< |
char *progname; |
32 |
> |
extern char *progname; |
33 |
|
|
34 |
|
FVECT scene_cent; /* center of octree cube */ |
35 |
|
RREAL scene_rad; /* radius to get outside cube from center */ |
208 |
|
return(tree); |
209 |
|
memerr: |
210 |
|
error(SYSTEM, "out of memory in geosample()"); |
211 |
+ |
return NULL; /* dummy return */ |
212 |
|
} |
213 |
|
|
214 |
|
/* Compute leaf exponent histogram */ |
387 |
|
LOSTLIGHT *lostlightlist = NULL; |
388 |
|
int emax; |
389 |
|
TRITREE *startleaf; |
388 |
– |
COLOR cval; |
390 |
|
double growstep; |
391 |
|
FVECT curcent; |
392 |
|
double currad; |