| 17 |
|
#define MAXDIST 42 /* maximum distance outside section */ |
| 18 |
|
#endif |
| 19 |
|
#ifndef NVSAMPS |
| 20 |
< |
#define NVSAMPS 4096 /* number of ray samples per view */ |
| 20 |
> |
#define NVSAMPS 16384 /* number of ray samples per view */ |
| 21 |
|
#endif |
| 22 |
|
#ifndef MEYERNG |
| 23 |
< |
#define MEYERNG 0.2 /* target mean eye range (rel. to grid) */ |
| 23 |
> |
#define MEYERNG 0.1 /* target mean eye range (rel. to grid) */ |
| 24 |
|
#endif |
| 25 |
|
#ifndef MAXTODO |
| 26 |
|
#define MAXTODO 3 /* maximum sections to look at */ |
| 285 |
|
addview(todo[i], vn, hr, vr); |
| 286 |
|
if (MEYERNG <= FTINY || vn->type == VT_PAR) |
| 287 |
|
return(1); |
| 288 |
< |
hdgsiz = 0.; d = 1./3. / n; /* compute mean grid size */ |
| 288 |
> |
hdgsiz = 0.; /* compute mean grid size */ |
| 289 |
|
for (i = 0; i < n; i++) { |
| 290 |
|
hp = hdlist[todo[i]]; |
| 291 |
< |
hdgsiz += d * ( VLEN(hp->xv[0])/hp->grid[0] + |
| 292 |
< |
VLEN(hp->xv[1])/hp->grid[1] + |
| 293 |
< |
VLEN(hp->xv[2])/hp->grid[2] ) ; |
| 291 |
> |
hdgsiz += 1./3. / VLEN(hp->wg[0]) + |
| 292 |
> |
1./3. / VLEN(hp->wg[1]) + |
| 293 |
> |
1./3. / VLEN(hp->wg[2]) ; |
| 294 |
|
} |
| 295 |
+ |
hdgsiz /= (double)n; |
| 296 |
|
/* add to current eye position */ |
| 297 |
|
if (cureye.rng <= FTINY) { |
| 298 |
|
VCOPY(cureye.vpt, vn->vp); |