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