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

Comparing ray/src/rt/m_clip.c (file contents):
Revision 2.8 by schorsch, Tue Mar 30 16:13:01 2004 UTC vs.
Revision 2.10 by greg, Wed Jul 25 04:12:36 2007 UTC

# Line 55 | Line 55 | m_clip(                        /* clip objects from ray */
55                  }
56                  m->os = (char *)modset;
57          }
58 +        if (r == NULL)
59 +                return(0);                      /* just initializing */
60          if (r->clipset != NULL)
61                  setcopy(cset, r->clipset);
62          else
# Line 78 | Line 80 | m_clip(                        /* clip objects from ray */
80          r->newcset = cset;
81          if (strcmp(m->oargs.sarg[0], VOIDID)) {
82                  int  inside = 0;
83 <                register RAY  *rp;
83 >                register const RAY  *rp;
84                                          /* check for penetration */
85                  for (rp = r; rp->parent != NULL; rp = rp->parent)
86                          if (!(rp->rtype & RAYREFL) && rp->parent->ro != NULL

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines