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.15 by greg, Fri Feb 12 00:47:33 2021 UTC vs.
Revision 2.16 by greg, Tue Feb 16 16:48:11 2021 UTC

# Line 98 | Line 98 | getface(                               /* get arguments for a face */
98          if (f->nv > 3 && badvert)
99                  objerror(o, WARNING, "non-planar vertex");
100                                                  /* find axis */
101 <        f->ax = (fabs(f->norm[0]) > fabs(f->norm[1]));
101 >        f->ax = (fabs(f->norm[1]) > fabs(f->norm[0]));
102          if (fabs(f->norm[2]) > fabs(f->norm[f->ax]))
103                  f->ax = 2;
104  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines