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

Comparing ray/src/hd/viewbeams.c (file contents):
Revision 3.1 by gwlarson, Thu Mar 4 10:30:04 1999 UTC vs.
Revision 3.4 by greg, Fri Jun 20 00:25:49 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1999 Silicon Graphics, Inc. */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ SGI";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Convert view to beam list.
6   */
# Line 40 | Line 37 | int    hd, bi, nr;
37                  }
38          i = blist.nb++;                         /* else add beam to list */
39          if (i % BALLOCBLK == 0) {
40 <                blist.bl = (PACKHEAD *)realloc((char *)blist.bl,
40 >                blist.bl = (PACKHEAD *)realloc((void *)blist.bl,
41                                  (i+BALLOCBLK)*sizeof(PACKHEAD));
42                  CHECK(blist.bl==NULL, SYSTEM, "out of memory in add2blist");
43          }
# Line 49 | Line 46 | int    hd, bi, nr;
46   }
47  
48  
49 < int2 *
49 > int16 *
50   viewbeams(vp, hr, vr, blp)              /* convert view into sections/beams */
51   VIEW    *vp;
52   int     hr, vr;
53   BEAMLIST        *blp;
54   {
55 <        static int2     sectlist[HDMAX+1];
56 <        int2    sectarr[MINRES+1][MINRES+1];
55 >        static int16    sectlist[HDMAX+1];
56 >        int16   sectarr[MINRES+1][MINRES+1];
57          double  d0, d1, mindist;
58          GCOORD  gc[2];
59          FVECT   rorg, rdir;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines