| 179 |
|
|
| 180 |
|
|
| 181 |
|
double |
| 182 |
< |
getviewpix(vh, vv, se) /* compute single view pixel */ |
| 182 |
> |
getviewpix(vh, vv) /* compute single view pixel */ |
| 183 |
|
int vh, vv; |
| 184 |
– |
SPANERR *se; |
| 184 |
|
{ |
| 185 |
|
FVECT dir; |
| 186 |
|
float rt_buf[6]; |
| 187 |
|
double res; |
| 188 |
|
|
| 189 |
< |
if (compdir(dir, vh, vv, se) < 0) |
| 189 |
> |
if (compdir(dir, vh, vv) < 0) |
| 190 |
|
return(-1.0); |
| 191 |
|
npixinvw++; |
| 192 |
|
if ((res = pict_val(dir)) >= 0.0) |
| 213 |
|
float rt_buf[6*MAXPIX]; /* rtrace send/receive buffer */ |
| 214 |
|
register int n; /* number of pixels in buffer */ |
| 215 |
|
short buf_vh[MAXPIX]; /* pixel positions */ |
| 217 |
– |
SPANERR sperr; |
| 216 |
|
FVECT dir; |
| 217 |
|
register int vh; |
| 218 |
|
|
| 221 |
|
fprintf(stderr, "%s: computing view span at %d...\n", |
| 222 |
|
progname, vv); |
| 223 |
|
#endif |
| 226 |
– |
setspanerr(&sperr, vv); |
| 224 |
|
n = 0; |
| 225 |
|
for (vh = -hsize; vh <= hsize; vh++) { |
| 226 |
< |
if (compdir(dir, vh, vv, &sperr) < 0) { /* not in view */ |
| 226 |
> |
if (compdir(dir, vh, vv) < 0) { /* not in view */ |
| 227 |
|
vb[vh+hsize] = -1.0; |
| 228 |
|
continue; |
| 229 |
|
} |