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

Comparing ray/src/rt/rv3.c (file contents):
Revision 2.40 by greg, Tue May 26 10:00:47 2015 UTC vs.
Revision 2.42 by greg, Thu Nov 8 00:54:07 2018 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13  
14   #include  "ray.h"
15   #include  "rpaint.h"
16 + #include  "otypes.h"
17 + #include  "otspecial.h"
18   #include  "random.h"
19  
20   #ifndef WFLUSH
# Line 114 | Line 116 | getinterest(           /* get area of interest */
116                  }
117                  if (!direc || ourview.type == VT_PAR) {
118                          rayorigin(&thisray, PRIMARY, NULL, NULL);
119 <                        if (!localhit(&thisray, &thescene)) {
119 >                        while (localhit(&thisray, &thescene)) {
120 >                                OBJREC  *m = findmaterial(thisray.ro);
121 >                                if (m != NULL && !istransp(m->otype) &&
122 >                                                !isBSDFproxy(m) &&
123 >                                                (thisray.clipset == NULL ||
124 >                                                        !inset(thisray.clipset,
125 >                                                            thisray.ro->omod)))
126 >                                        break;          /* found something */
127 >                                VCOPY(thisray.rorg, thisray.rop);
128 >                                rayclear(&thisray);     /* skip invisible */
129 >                        }
130 >                        if ((thisray.ro == NULL) | (thisray.ro == &Aftplane)) {
131                                  error(COMMAND, "not a local object");
132                                  return(-1);
133                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines