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) */ |
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); |