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

Comparing ray/src/hd/rhcopy.c (file contents):
Revision 3.11 by gwlarson, Thu Nov 12 15:06:00 1998 UTC vs.
Revision 3.14 by gwlarson, Mon Mar 8 17:32:26 1999 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
1 > /* Copyright (c) 1999 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ SGI";
# Line 16 | Line 16 | static char SCCSid[] = "$SunId$ SGI";
16   #define BKBSIZE         256             /* beam clump size (kilobytes) */
17   #endif
18  
19 < int     checkdepth = 1;         /* check depth (!-f option)? */
20 < int     checkrepeats = 0;       /* check for repeats (-c option)? */
19 > int     checkdepth = 1;         /* check depth (!-d option)? */
20 > int     checkrepeats = 0;       /* check for repeats (-u option)? */
21   int     frompicz;               /* input from pictures & depth-buffers? */
22   int     noutsects;              /* number of output sections */
23   char    obstr, unobstr;         /* flag pointer values */
# Line 175 | Line 175 | COLR   cv;
175                  bi = hdbindex(hp, gc);          /* check for duplicates */
176                  if (checkrepeats && (bp = hdgetbeam(hp, bi)) != NULL) {
177                          for (n = bp->nrm, rv = hdbray(bp); n--; rv++)
178 <                                if (rv->d == dc &&
178 >                                if ((hp->priv != NULL || rv->d == dc) &&
179                                                  rv->r[0][0] == rr[0][0] &&
180                                                  rv->r[0][1] == rr[0][1] &&
181                                                  rv->r[1][0] == rr[1][0] &&
# Line 236 | Line 236 | int    *bq, nb;
236                  }
237                  hdfreebeam(hp, bq[i]);          /* free the beam */
238          }
239        hdflush(NULL);                  /* write & free clump */
239          return(0);
240   }
241  
# Line 253 | Line 252 | char   *hdf;
252                  hddone(hdlist[noutsects]);              /* free the section */
253          }
254          close(fd);                      /* close input file */
255 +        hdflush(NULL);                  /* flush output */
256   }
257  
258  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines