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 1.8 by greg, Thu Jul 25 14:50:03 1991 UTC vs.
Revision 1.11 by greg, Tue Aug 13 14:43:49 1991 UTC

# Line 18 | Line 18 | static char SCCSid[] = "$SunId$ LBL";
18   #define  SAMPDENS       48              /* points per projected steradian */
19   #define  NSAMPS         32              /* samples per point */
20   #define  DFLMAT         "illum_mat"     /* material name */
21 + #define  DFLDAT         "illum"         /* data file name */
22                                  /* selection options */
23   #define  S_NONE         0               /* select none */
24   #define  S_ELEM         1               /* select specified element */
# Line 36 | Line 37 | struct rtproc  rt;             /* our rtrace process */
37   struct illum_args  thisillum = {        /* our illum and default values */
38                  0,
39                  DFLMAT,
40 <                DFLMAT,
40 >                DFLDAT,
41                  0,
42                  VOIDID,
43                  SAMPDENS,
# Line 89 | Line 90 | char   *argv[];
90          rtargv[rtargc] = NULL;
91                                  /* just asking for defaults? */
92          if (!strcmp(argv[gargc-1], "-defaults")) {
93 +                printopts(); fflush(stdout);
94                  rtpath = getpath(rtargv[0], getenv("PATH"), X_OK);
95                  if (rtpath == NULL) {
96                          eputs(rtargv[0]);
# Line 256 | Line 258 | char   *nm;
258                                  break;
259                          if (!*++cp) {
260                                  strcpy(thisillum.datafile,thisillum.matname);
261 +                                thisillum.dfnum = 0;
262                                  thisillum.flags &= ~IL_DATCLB;
263                                  continue;
264                          }
# Line 363 | Line 366 | char   *nm;
366          }
367                                                  /* print pure comment */
368          printf("# %s", s+2);
369 + }
370 +
371 +
372 + printopts()                     /* print out option default values */
373 + {
374 +        printf("m=%-15s\t\t# material name\n", thisillum.matname);
375 +        printf("f=%-15s\t\t# data file name\n", thisillum.datafile);
376 +        printf("c=n\t\t\t\t# color none\n");
377 +        printf("d=%d\t\t\t\t# density of points\n", thisillum.sampdens);
378 +        printf("s=%d\t\t\t\t# samples per point\n", thisillum.nsamps);
379   }
380  
381  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines