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

Comparing ray/src/util/rad.c (file contents):
Revision 2.57 by gwlarson, Wed Jun 10 17:51:06 1998 UTC vs.
Revision 2.58 by gwlarson, Mon Oct 19 16:21:41 1998 UTC

# Line 341 | Line 341 | double org[3], *sizp;
341  
342   setdefaults()                   /* set default values for unassigned var's */
343   {
344 <        double  org[3], size;
344 >        double  org[3], lim[3], size;
345          char    buf[128];
346  
347          if (!vdef(ZONE)) {
# Line 350 | Line 350 | setdefaults()                  /* set default values for unassigned v
350                                  org[1], org[1]+size, org[2], org[2]+size);
351                  vval(ZONE) = savqstr(buf);
352                  vdef(ZONE)++;
353 +        }
354 +        if (!vdef(EYESEP)) {
355 +                if (sscanf(vval(ZONE), "%*s %lf %lf %lf %lf %lf %lf",
356 +                                &org[0], &lim[0], &org[1], &lim[1],
357 +                                &org[2], &lim[2]) != 6)
358 +                        badvalue(ZONE);
359 +                sprintf(buf, "%f",
360 +                        0.01*(lim[0]-org[0]+lim[1]-org[1]+lim[2]-org[2]));
361 +                vval(EYESEP) = savqstr(buf);
362 +                vdef(EYESEP)++;
363          }
364          if (!vdef(INDIRECT)) {
365                  vval(INDIRECT) = "0";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines