| 13 |
|
#include "resolu.h" |
| 14 |
|
#include "bsdfrep.h" |
| 15 |
|
|
| 16 |
+ |
#ifndef NINCIDENT |
| 17 |
|
#define NINCIDENT 37 /* number of samples/hemisphere */ |
| 18 |
< |
|
| 18 |
> |
#endif |
| 19 |
> |
#ifndef GRIDSTEP |
| 20 |
|
#define GRIDSTEP 2 /* our grid step size */ |
| 21 |
+ |
#endif |
| 22 |
|
#define SAMPRES (GRIDRES/GRIDSTEP) |
| 23 |
|
|
| 24 |
|
int front_comp = 0; /* front component flags (SDsamp*) */ |
| 27 |
|
double min_log10; /* smallest log10 value for plotting */ |
| 28 |
|
double overall_max = .0; /* overall maximum BSDF value */ |
| 29 |
|
|
| 30 |
< |
char ourTempDir[TEMPLEN] = ""; /* our temporary directory */ |
| 30 |
> |
char ourTempDir[TEMPLEN+1] = ""; /* our temporary directory */ |
| 31 |
|
|
| 32 |
|
const char frpref[] = "rf"; |
| 33 |
|
const char ftpref[] = "tf"; |
| 80 |
|
static char * |
| 81 |
|
tfile_name(const char *prefix, const char *suffix, int i) |
| 82 |
|
{ |
| 83 |
< |
static char buf[128]; |
| 83 |
> |
static char buf[256]; |
| 84 |
|
|
| 85 |
|
if (!ourTempDir[0]) { /* create temporary directory */ |
| 86 |
|
mktemp(strcpy(ourTempDir,TEMPLATE)); |