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.11 by greg, Tue Aug 13 14:43:49 1991 UTC vs.
Revision 1.14 by greg, Fri Nov 8 13:17:44 1991 UTC

# Line 42 | Line 42 | struct illum_args  thisillum = {       /* our illum and defa
42                  VOIDID,
43                  SAMPDENS,
44                  NSAMPS,
45 +                0.,
46          };
47  
48   char    matcheck[MAXSTR];       /* current material to include or exclude */
# Line 146 | Line 147 | init()                         /* start rtrace and set up buffers */
147                                          /* set up signal handling */
148          signal(SIGPIPE, quit);
149                                          /* start rtrace process */
150 +        errno = 0;
151          maxbytes = open_process(rt.pd, rtargv);
152          if (maxbytes == 0) {
153                  eputs(rtargv[0]);
# Line 329 | Line 331 | char   *nm;
331                                  break;
332                          cp++;
333                          continue;
334 +                case 'b':                       /* brightness */
335 +                        if (*++cp != '=')
336 +                                break;
337 +                        if (!isfltd(++cp, " \t\n"))
338 +                                break;
339 +                        thisillum.minbrt = atof(cp);
340 +                        if (thisillum.minbrt < 0.)
341 +                                thisillum.minbrt = 0.;
342 +                        cp = sskip(cp);
343 +                        continue;
344                  case 'o':                       /* output file */
345                          if (*++cp != '=')
346                                  break;
# Line 376 | Line 388 | printopts()                    /* print out option default values */
388          printf("c=n\t\t\t\t# color none\n");
389          printf("d=%d\t\t\t\t# density of points\n", thisillum.sampdens);
390          printf("s=%d\t\t\t\t# samples per point\n", thisillum.nsamps);
391 +        printf("b=%f\t\t\t# minimum average brightness\n", thisillum.minbrt);
392   }
393  
394  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines