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.11 by greg, Sun Mar 30 17:28:04 2014 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines