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 */ |
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 */ |
236 |
|
memset((void *)exphisto, 0, sizeof(exphisto)); |
237 |
|
for (i = 0; i < NTRUNKBR; i++) |
238 |
|
get_ehisto(&tree->kid[i], exphisto); |
239 |
< |
/* use 99th percentile */ |
239 |
> |
/* use 98th percentile */ |
240 |
|
for (i = 0; i < 256; i++) |
241 |
|
samptotal += exphisto[i]; |
242 |
< |
samptotal /= 100; |
242 |
> |
samptotal /= 50; |
243 |
|
for (i = 256; (--i > 0) & (samptotal > 0); ) |
244 |
|
samptotal -= exphisto[i]; |
245 |
|
return(ldexp(.75, i-COLXS)); |
387 |
|
LOSTLIGHT *lostlightlist = NULL; |
388 |
|
int emax; |
389 |
|
TRITREE *startleaf; |
388 |
– |
COLOR cval; |
390 |
|
double growstep; |
391 |
|
FVECT curcent; |
392 |
|
double currad; |