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

Comparing ray/src/common/image.c (file contents):
Revision 2.47 by greg, Fri Apr 27 17:36:01 2018 UTC vs.
Revision 2.48 by greg, Fri Apr 27 18:09:26 2018 UTC

# Line 315 | Line 315 | FVECT  p
315          ip[0] = DOT(disp,v->hvec)/v->hn2 + 0.5 - v->hoff;
316          ip[1] = DOT(disp,v->vvec)/v->vn2 + 0.5 - v->voff;
317   gotall:                                 /* add appropriate return flags */
318 <        if (!(rflags & (VL_BEHIND|VL_BEYOND)))
319 <                rflags |= (ip[2] <= 0.0) ? VL_BEHIND :
320 <                                          VL_BEYOND * ((v->vaft > FTINY) &
321 <                                                (ip[2] >= v->vaft - v->vfore));
318 >        if (ip[2] <= 0.0)
319 >                rflags |= VL_BEHIND;
320 >        else if ((v->type != VT_PER) & (v->type != VT_CYL))
321 >                rflags |= VL_BEYOND*((v->vaft > FTINY) &
322 >                                        (ip[2] >= v->vaft - v->vfore));
323          rflags |= VL_OUTSIDE*((0.0 >= ip[0]) | (ip[0] >= 1.0) |
324                                  (0.0 >= ip[1]) | (ip[1] >= 1.0));
325          return(rflags);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines