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

Comparing ray/src/hd/rhd_qtree.c (file contents):
Revision 3.27 by greg, Fri May 20 02:06:39 2011 UTC vs.
Revision 3.28 by greg, Wed Jan 24 04:39:52 2018 UTC

# Line 268 | Line 268 | putleaf(               /* put a leaf in our tree */
268                  return(0);
269                                          /* compute leaf location in view */
270          VCOPY(wp, qtL.wp[li]);
271 <        viewloc(ip, &odev.v, wp);
272 <        if (ip[2] <= 0. || ip[0] < 0. || ip[0] >= 1.
273 <                        || ip[1] < 0. || ip[1] >= 1.)
271 >        if (viewloc(ip, &odev.v, wp) != 1)
272                  goto dropit;                    /* behind or outside view */
273   #ifdef DEBUG
274          if (odev.v.type == VT_PAR | odev.v.vfore > FTINY)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines