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

Comparing ray/src/common/objtriangulate.c (file contents):
Revision 2.2 by greg, Mon Apr 19 19:40:03 2021 UTC vs.
Revision 2.3 by greg, Tue Feb 13 21:06:00 2024 UTC

# Line 88 | Line 88 | mktriangles(Scene *sc, Face *f, void *p)
88          mysf.rev = (polyArea(poly) < .0);
89          i = polyTriangulate(poly, addtriangle);
90          polyFree(poly);
91 <                                        /* flag face if replaced */
92 <        f->flags |= (i > 0)*FACE_DUPLICATE;
91 >        if (i > 0)                      /* flag face */
92 >                f->flags |= FACE_DUPLICATE;
93 >        else
94 >                f->flags |= FACE_DEGENERATE;
95          return(i);
96   }
97  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines