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 2.3 by greg, Fri May 14 13:42:53 1993 UTC vs.
Revision 2.4 by greg, Thu Aug 24 20:54:54 1995 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 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 58 | Line 58 | OBJREC  *o;
58  
59          f->va = o->oargs.farg;
60          f->nv = o->oargs.nfargs / 3;
61 +                                                /* check for last==first */
62 +        if (dist2(VERTEX(f,0),VERTEX(f,f->nv-1)) <= FTINY*FTINY)
63 +                f->nv--;
64                                                  /* compute area and normal */
65          f->norm[0] = f->norm[1] = f->norm[2] = 0.0;
66          v1[0] = v1[1] = v1[2] = 0.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines