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

Comparing ray/src/gen/mkillum.c (file contents):
Revision 2.2 by greg, Wed Mar 11 11:09:57 1992 UTC vs.
Revision 2.5 by greg, Thu Nov 19 20:27:48 1992 UTC

# Line 26 | Line 26 | static char SCCSid[] = "$SunId$ LBL";
26   #define  S_ALL          3               /* select all */
27  
28                                  /* rtrace command and defaults */
29 < char  *rtargv[64] = { "rtrace", "-dj", ".25", "-dr", "3", "-di+",
29 > char  *rtargv[64] = { "rtrace", "-dj", ".25", "-dr", "3", "-dv-",
30                  "-ab", "2", "-ad", "256", "-as", "128", "-aa", ".15", };
31   int  rtargc = 14;
32                                  /* overriding rtrace options */
33 < char  *myrtopts[] = { "-I-", "-i-", "-ov", "-h-", "-fff", NULL };
33 > char  *myrtopts[] = { "-I-", "-i-", "-ov", "-h-", "-fff", "-y", "0", NULL };
34  
35   struct rtproc   rt;             /* our rtrace process */
36  
# Line 82 | Line 82 | char   *argv[];
82                  if (argv[i][0] == '-' && argv[i][1] == 'w')
83                          warnings = !warnings;
84          }
85 <        if ((gargc = i) < 2)
86 <                error(USER, "too few arguments");
85 >        gargc = i;
86          rtargc--;
87          for (i = 0; myrtopts[i] != NULL; i++)
88                  rtargv[rtargc++] = myrtopts[i];
# Line 102 | Line 101 | char   *argv[];
101                  perror(rtpath);
102                  exit(1);
103          }
104 +        if (gargc < 2 || argv[gargc-1][0] == '-')
105 +                error(USER, "missing octree argument");
106                                  /* else initialize and run our calculation */
107          init();
108          if (gargc+1 < argc)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines