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.30 by greg, Tue Sep 18 19:51:07 2007 UTC vs.
Revision 2.31 by greg, Fri Sep 21 05:53:21 2007 UTC

# Line 26 | Line 26 | static const char RCSid[] = "$Id$";
26   struct illum_args  thisillum = {        /* our illum and default values */
27                  0,
28                  UDzpos,
29 +                0.,
30                  DFLMAT,
31                  DFLDAT,
32                  0,
# Line 393 | Line 394 | xoptions(                      /* process options in string s */
394                          if (thisillum.udir == UDunknown || !isspace(*cp))
395                                  break;
396                          continue;
397 +                case 't':                       /* object thickness */
398 +                        if (*++cp != '=')
399 +                                break;
400 +                        if (!isfltd(++cp, " \t\n\r"))
401 +                                break;
402 +                        thisillum.thick = atof(cp);
403 +                        if (thisillum.thick < .0)
404 +                                thisillum.thick = .0;
405 +                        cp = sskip(cp);
406 +                        continue;
407                  case '!':                       /* processed file! */
408                          sprintf(errmsg, "(%s): already processed!", nm);
409                          error(WARNING, errmsg);
# Line 460 | Line 471 | printopts(void)                        /* print out option default values *
471          case UDunknown:
472                  break;
473          }
474 +        printf("t=%f\t\t\t# object thickness\n", thisillum.thick);
475   }
476  
477  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines