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

Comparing ray/src/ot/oconv.c (file contents):
Revision 1.5 by greg, Wed Jun 21 08:56:35 1989 UTC vs.
Revision 1.6 by greg, Sat Oct 14 11:19:34 1989 UTC

# Line 201 | Line 201 | OBJECT  obj;
201  
202          in = (*ofun[objptr(obj)->otype].funp)(objptr(obj), cu);
203  
204 <        if (!in)
204 >        if (in == O_MISS)
205                  return;                         /* no intersection */
206          
207          if (istree(cu->cutree)) {
# Line 228 | Line 228 | OBJECT  obj;
228                  objset(oset, cu->cutree);
229                  cukid.cusize = cu->cusize * 0.5;
230                  
231 <                if (in == 2 || oset[0] < objlim || cukid.cusize < mincusize) {
231 >                if (in==O_IN || oset[0] < objlim || cukid.cusize < mincusize) {
232                                                          /* add to set */
233                          if (oset[0] >= MAXSET) {
234                                  sprintf(errmsg,
# Line 250 | Line 250 | OBJECT  obj;
250                                          if ((1<<j) & i)
251                                                  cukid.cuorg[j] += cukid.cusize;
252                                  }
253 +                                addobject(&cukid, obj);
254                                  for (j = 1; j <= oset[0]; j++)
255                                          addobject(&cukid, oset[j]);
255                                addobject(&cukid, obj);
256                                  octkid(ot, i) = cukid.cutree;
257                          }
258                          cu->cutree = ot;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines