ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/glareval.c
(Generate patch)

Comparing ray/src/util/glareval.c (file contents):
Revision 1.3 by greg, Tue Mar 19 17:06:27 1991 UTC vs.
Revision 1.4 by greg, Wed Mar 20 13:20:06 1991 UTC

# Line 154 | Line 154 | float  *vb;
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 */
# Line 181 | Line 183 | float  *vb;
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)
# Line 197 | Line 201 | int    np;
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",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines