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

Comparing ray/src/rt/o_mesh.c (file contents):
Revision 2.8 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 2.10 by schorsch, Tue Mar 30 16:13:01 2004 UTC

# Line 26 | Line 26 | static const char RCSid[] = "$Id$";
26   #include  "ray.h"
27   #include  "mesh.h"
28   #include  "tmesh.h"
29 + #include  "rtotypes.h"
30  
31  
32   #define  EDGE_CACHE_SIZ         251     /* length of mesh edge cache */
# Line 144 | Line 145 | RAY    *r;
145   }
146  
147  
148 < int
149 < o_mesh(o, r)                    /* compute ray intersection with a mesh */
150 < OBJREC          *o;
151 < register RAY    *r;
148 > extern int
149 > o_mesh(                 /* compute ray intersection with a mesh */
150 >        OBJREC          *o,
151 >        register RAY    *r
152 > )
153   {
154          RAY             rcont;
155          int             flags;
# Line 158 | Line 160 | register RAY   *r;
160                                          /* get the mesh instance */
161          prep_edge_cache(o);
162                                          /* copy and transform ray */
163 <        copystruct(&rcont, r);
163 >        rcont = *r;
164          multp3(rcont.rorg, r->rorg, curmi->x.b.xfm);
165          multv3(rcont.rdir, r->rdir, curmi->x.b.xfm);
166          for (i = 0; i < 3; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines