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.13 by greg, Fri Sep 16 15:09:21 2016 UTC vs.
Revision 2.14 by greg, Sun Jun 14 02:10:44 2020 UTC

# Line 57 | Line 57 | getface(                               /* get arguments for a face */
57          f->va = o->oargs.farg;
58          f->nv = o->oargs.nfargs / 3;
59                                                  /* check for last==first */
60 <        if (dist2(VERTEX(f,0),VERTEX(f,f->nv-1)) <= FTINY*FTINY)
60 >        if (f->nv > 3 && dist2(VERTEX(f,0),VERTEX(f,f->nv-1)) <= FTINY*FTINY)
61                  f->nv--;
62                                                  /* compute area and normal */
63          f->norm[0] = f->norm[1] = f->norm[2] = 0.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines