154 |
|
FVECT dir; |
155 |
|
register int vh; |
156 |
|
|
157 |
+ |
#ifdef DEBUG |
158 |
|
if (verbose) |
159 |
|
fprintf(stderr, "%s: computing view span at %d...\n", |
160 |
|
progname, vv); |
161 |
+ |
#endif |
162 |
|
n = 0; |
163 |
|
for (vh = -hsize; vh <= hsize; vh++) { |
164 |
|
if (compdir(dir, vh, vv) < 0) { /* off viewable region */ |
183 |
|
rt_buf[6*n+5] = dir[2]; |
184 |
|
buf_vh[n++] = vh; |
185 |
|
} |
186 |
+ |
#ifdef DEBUG |
187 |
|
if (verbose) |
188 |
|
pict_stats(); |
189 |
+ |
#endif |
190 |
|
if (n > 0) { /* process pending buffer */ |
191 |
|
rt_compute(rt_buf, n); |
192 |
|
while (n-- > 0) |
201 |
|
{ |
202 |
|
static float nbuf[6] = {0.,0.,0.,0.,0.,0.}; |
203 |
|
|
204 |
+ |
#ifdef DEBUG |
205 |
|
if (verbose && np > 1) |
206 |
|
fprintf(stderr, "%s: sending %d samples to rtrace...\n", |
207 |
|
progname, np); |
208 |
+ |
#endif |
209 |
|
if (writebuf(fd_tort,(char *)pb,6*sizeof(float)*np) < 6*sizeof(float)*np |
210 |
|
|| writebuf(fd_tort,(char *)nbuf,sizeof(nbuf)) < sizeof(nbuf)) { |
211 |
|
fprintf(stderr, "%s: error writing to rtrace process\n", |