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.3 by greg, Fri Jul 28 14:27:44 1989 UTC vs.
Revision 1.6 by greg, Wed Oct 23 13:43:14 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 */
# Line 99 | Line 99 | OBJREC  *o;
99   freeface(o)                     /* free memory associated with face */
100   OBJREC  *o;
101   {
102 +        if (o->os == NULL)
103 +                return;
104          free(o->os);
105          o->os = NULL;
106   }
# Line 111 | Line 113 | FACE  *f;
113          int  ncross, n;
114          double  x, y;
115          register int  xi, yi;
116 <        register double  *p0, *p1;
116 >        register FLOAT  *p0, *p1;
117  
118          xi = (f->ax+1)%3;
119          yi = (f->ax+2)%3;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines