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.6 by greg, Tue Mar 30 13:16:26 1993 UTC vs.
Revision 2.7 by greg, Tue Apr 6 17:21:04 1993 UTC

# Line 166 | Line 166 | char   *argv[];
166                                  /* print all values if requested */
167          if (explicate)
168                  printvals();
169 <                                /* run simulation */
169 >                                /* build octree */
170          oconv();
171 +                                /* check date on ambient file */
172 +        checkambfile();
173 +                                /* run simulation */
174          renderopts(ropts);
175          xferopts(ropts);
176          if (rvdevice != NULL)
# Line 554 | Line 557 | register char  *oo;
557   }
558  
559  
560 + checkambfile()                  /* check date on ambient file */
561 + {
562 +        long    afdate;
563 +
564 +        if (vdef(AMBFILE)) {
565 +                afdate = fdate(vval(AMBFILE));
566 +                if (afdate >= 0 & octreedate > afdate)
567 +                        rmfile(vval(AMBFILE));
568 +        }
569 + }
570 +
571 +
572   double
573   ambval()                                /* compute ambient value */
574   {
# Line 1028 | Line 1043 | char   *opts;
1043                          sprintf(rep, " -t %d", (int)(minutes*60));
1044                  else
1045                          badvalue(REPORT);
1031        }
1032                                        /* check date on ambient file */
1033        if (vdef(AMBFILE)) {
1034                long    afdate = fdate(vval(AMBFILE));
1035                if (afdate >= 0 & octreedate > afdate)
1036                        rmfile(vval(AMBFILE));
1046          }
1047                                          /* do each view */
1048          vn = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines