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.7 by schorsch, Mon Jul 21 22:30:19 2003 UTC vs.
Revision 2.9 by greg, Tue Apr 19 01:15:06 2005 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   #include "copyright.h"
9  
10   #include  "ray.h"
11 + #include  "rtotypes.h"
12  
13   /*
14   *  Clipping objects permit holes and sections to be taken out
# Line 18 | Line 19 | static const char      RCSid[] = "$Id$";
19   */
20  
21  
22 < int
23 < m_clip(m, r)                    /* clip objects from ray */
24 < register OBJREC  *m;
25 < register RAY  *r;
22 > extern int
23 > m_clip(                 /* clip objects from ray */
24 >        register OBJREC  *m,
25 >        register RAY  *r
26 > )
27   {
28          OBJECT  cset[MAXSET+1], *modset;
29          OBJECT  obj, mod;
# Line 76 | Line 78 | register RAY  *r;
78          r->newcset = cset;
79          if (strcmp(m->oargs.sarg[0], VOIDID)) {
80                  int  inside = 0;
81 <                register RAY  *rp;
81 >                register const RAY  *rp;
82                                          /* check for penetration */
83                  for (rp = r; rp->parent != NULL; rp = rp->parent)
84                          if (!(rp->rtype & RAYREFL) && rp->parent->ro != NULL

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines