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

Comparing ray/src/rt/srcsupp.c (file contents):
Revision 2.6 by greg, Fri Aug 28 15:10:47 1992 UTC vs.
Revision 2.7 by greg, Thu Aug 24 20:56:08 1995 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1992 Regents of the University of California */
1 > /* Copyright (c) 1995 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 119 | Line 119 | OBJREC  *so;
119          }
120          src->srad = sqrt(src->srad);
121                                                  /* compute size vectors */
122 <        if (f->nv == 4 || (f->nv == 5 &&        /* parallelogram case */
123 <                        dist2(VERTEX(f,0),VERTEX(f,4)) <= FTINY*FTINY))
122 >        if (f->nv == 4)                         /* parallelogram case */
123                  for (j = 0; j < 3; j++) {
124                          src->ss[SU][j] = .5*(VERTEX(f,1)[j]-VERTEX(f,0)[j]);
125                          src->ss[SV][j] = .5*(VERTEX(f,3)[j]-VERTEX(f,0)[j]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines