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

Comparing ray/src/gen/mkillum2.c (file contents):
Revision 2.38 by greg, Sat Oct 13 20:15:43 2012 UTC vs.
Revision 2.39 by greg, Thu Dec 4 05:26:28 2014 UTC

# Line 150 | Line 150 | mkaxes(                        /* compute u and v to go with n */
150          FVECT  n
151   )
152   {
153 <        register int  i;
154 <
155 <        v[0] = v[1] = v[2] = 0.0;
156 <        for (i = 0; i < 3; i++)
157 <                if (n[i] < 0.6 && n[i] > -0.6)
158 <                        break;
159 <        v[i] = 1.0;
160 <        fcross(u, v, n);
161 <        normalize(u);
153 >        getperpendicular(u, n);
154          fcross(v, n, u);
155   }
156  
157  
158   static void
159   rounddir(               /* compute uniform spherical direction */
160 <        register FVECT  dv,
160 >        FVECT  dv,
161          double  alt,
162          double  azi
163   )
# Line 379 | Line 371 | my_face(               /* make an illum face */
371  
372   int
373   my_sphere(      /* make an illum sphere */
374 <        register OBJREC  *ob,
374 >        OBJREC  *ob,
375          struct illum_args  *il,
376          char  *nm
377   )
# Line 389 | Line 381 | my_sphere(     /* make an illum sphere */
381          double  sp[4], r1, r2, r3;
382          FVECT  org, dir;
383          FVECT  u, v;
384 <        register int  i, j;
384 >        int  i, j;
385                                  /* check arguments */
386          if (ob->oargs.nfargs != 4)
387                  objerror(ob, USER, "bad # of arguments");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines