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.7 by greg, Fri Jan 12 10:50:59 1990 UTC vs.
Revision 1.8 by greg, Mon Apr 2 15:19:46 1990 UTC

# Line 252 | Line 252 | OBJECT  obj;
252                                          if ((1<<j) & i)
253                                                  cukid.cuorg[j] += cukid.cusize;
254                                  }
255 +                                                        /* surfaces first */
256 +                                for (j = 1; j <= oset[0]; j++)
257 +                                        if (!isvolume(objptr(oset[j])->otype))
258 +                                                addobject(&cukid, oset[j]);
259 +                                                        /* then this object */
260                                  addobject(&cukid, obj);
261 +                                                        /* volumes last */
262                                  for (j = 1; j <= oset[0]; j++)
263 <                                        addobject(&cukid, oset[j]);
263 >                                        if (isvolume(objptr(oset[j])->otype))
264 >                                                addobject(&cukid, oset[j]);
265                                  octkid(ot, i) = cukid.cutree;
266                          }
267                          cu->cutree = ot;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines