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

Comparing ray/src/cv/bsdf2rad.c (file contents):
Revision 2.9 by greg, Mon Mar 24 06:07:46 2014 UTC vs.
Revision 2.10 by greg, Sun Mar 30 17:23:28 2014 UTC

# Line 22 | Line 22 | const float    colarr[6][3] = {
22                  .5, 1., 1.
23          };
24  
25 + char    validf[] = "-e \"valid(s,t)=X`SYS(s,t)^2+Y`SYS(s,t)^2+Z`SYS(s,t)^2-1e-7\"";
26 +
27   char    *progname;
28  
29   /* Produce a Radiance model plotting the indicated incident direction(s) */
# Line 144 | Line 146 | main(int argc, char *argv[])
146                          }
147                  }
148                  fflush(stdout);
149 <                sprintf(buf, "gensurf tmat bsdf%d - - - %d %d", n+1,
150 <                                                GRIDRES-1, GRIDRES-1);
149 >                sprintf(buf, "gensurf tmat bsdf%d - - - %d %d %s", n+1,
150 >                                                GRIDRES-1, GRIDRES-1, validf);
151                  fp = popen(buf, "w");
152                  if (fp == NULL) {
153                          fprintf(stderr, "%s: cannot open '| %s'\n", progname, buf);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines