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.11 by schorsch, Thu Jun 26 00:58:09 2003 UTC vs.
Revision 2.12 by greg, Thu Mar 2 16:51:54 2006 UTC

# Line 127 | Line 127 | FACE  *f;
127          register int  xi, yi;
128          register RREAL  *p0, *p1;
129  
130 <        xi = (f->ax+1)%3;
131 <        yi = (f->ax+2)%3;
130 >        if ((xi = f->ax + 1) >= 3) xi -= 3;
131 >        if ((yi = xi + 1) >= 3) yi -= 3;
132          x = p[xi];
133          y = p[yi];
134          n = f->nv;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines