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

Comparing ray/src/hd/rhdisp3.c (file contents):
Revision 3.2 by gregl, Thu Nov 20 14:21:41 1997 UTC vs.
Revision 3.3 by gregl, Thu Nov 20 16:43:42 1997 UTC

# Line 102 | Line 102 | char   *dp;
102                                  } else if (d < -FTINY) {        /* plane -> */
103                                          if ((t /= d) > lbeg)
104                                                  lbeg = t;
105 <                                } else if (t < 0)               /* outside */
106 <                                        goto nextscan;
105 >                                } else if (t < 0) {             /* outside */
106 >                                        lend = -1;
107 >                                        break;
108 >                                }
109                          }
110 +                        if (lbeg >= lend)
111 +                                continue;
112                          i = lend + .5;          /* visit cells on this scan */
113                          for (gc.i[0] = lbeg + .5; gc.i[0] < i; gc.i[0]++)
114                                  n += (*vf)(&gc, dp);
111                nextscan:;
115                  }
116          }
117          return(n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines