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

Comparing ray/src/rt/srcdraw.c (file contents):
Revision 2.17 by greg, Tue Jul 8 18:25:00 2014 UTC vs.
Revision 2.18 by greg, Wed Jan 24 04:39:52 2018 UTC

# Line 324 | Line 324 | sourcepoly(                    /* compute image polygon for source */
324                                          ap[i] += ourview.vp[i];
325                                  }
326                          }
327 <                        viewloc(ip, &ourview, ap);      /* find image point */
328 <                        if (ip[2] <= 0.)
327 >                                                        /* find image point */
328 >                        if (viewloc(ip, &ourview, ap) <= 0)
329                                  return(0);              /* in front of view */
330                          sp[j][0] = ip[0]; sp[j][1] = ip[1];
331                  }
# Line 348 | Line 348 | sourcepoly(                    /* compute image polygon for source */
348                          if (cubeord[dir][j] & 4) ap[i] += s->ss[SW][i];
349                          else ap[i] -= s->ss[SW][i];
350                  }
351 <                viewloc(ip, &ourview, ap);      /* find image point */
352 <                if (ip[2] <= 0.)
351 >                                                /* find image point */
352 >                if (viewloc(ip, &ourview, ap) <= 0)
353                          return(0);              /* in front of view */
354                  pt[j][0] = ip[0]; pt[j][1] = ip[1];
355          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines