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

Comparing ray/src/util/xglaresrc.c (file contents):
Revision 2.9 by schorsch, Fri Mar 26 23:34:24 2004 UTC vs.
Revision 2.10 by greg, Wed Jan 24 04:39:52 2018 UTC

# Line 240 | Line 240 | circle(                /* indicate a solid angle on image */
240                  cur[0] += ourview.vp[0];
241                  cur[1] += ourview.vp[1];
242                  cur[2] += ourview.vp[2];
243 <                viewloc(pp, &ourview, cur);
244 <                if (pp[2] <= 0.0)
243 >                if (viewloc(pp, &ourview, cur) <= 0)
244                          goto fail;
245                  loc2pix(ip, &pres, pp[0], pp[1]);
246                  pt[i].x = ip[0];
# Line 269 | Line 268 | value(                 /* print value on image */
268          pos[0] = ourview.vp[0] + dir[0];
269          pos[1] = ourview.vp[1] + dir[1];
270          pos[2] = ourview.vp[2] + dir[2];
271 <        viewloc(pp, &ourview, pos);
273 <        if (pp[2] <= 0.0)
271 >        if (viewloc(pp, &ourview, pos) <= 0)
272                  return;
273          loc2pix(ip, &pres, pp[0], pp[1]);
274          sprintf(buf, "%.0f", v);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines