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

Comparing ray/src/common/face.c (file contents):
Revision 1.4 by greg, Wed Jul 17 14:10:13 1991 UTC vs.
Revision 1.5 by greg, Fri Aug 2 10:29:42 1991 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 84 | Line 84 | OBJREC  *o;
84                  badvert += fabs(d1 - f->offset/i) > VERTEPS;
85                  f->offset += d1;
86          }
87 <        f->offset /= f->nv;
87 >        f->offset /= (double)f->nv;
88          if (badvert)
89                  objerror(o, WARNING, "non-planar vertex");
90                                                  /* find axis */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines