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

Comparing ray/src/ot/o_face.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:33:03 1989 UTC vs.
Revision 1.2 by greg, Tue Feb 21 14:44:49 1989 UTC

# Line 86 | Line 86 | CUBE  *cu;
86                          v1[j] = cumax[j];
87                          v2[j] = cumin[j];
88                  }
89 <        if ((d1 = DOT(v1, f->norm) - f->const) > FTINY)
89 >        if ((d1 = DOT(v1, f->norm) - f->offset) > FTINY)
90                  return(0);
91 <        if ((d2 = DOT(v2, f->norm) - f->const) < -FTINY)
91 >        if ((d2 = DOT(v2, f->norm) - f->offset) < -FTINY)
92                  return(0);
93                                          /* intersect face */
94          for (j = 0; j < 3; j++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines