| 29 |
|
int verbose = 0; /* verbose reporting */ |
| 30 |
|
char *progname; /* global argv[0] */ |
| 31 |
|
|
| 32 |
+ |
double threshold = 0.; /* glare threshold */ |
| 33 |
+ |
|
| 34 |
|
int sampdens = SAMPDENS; /* sample density */ |
| 35 |
|
ANGLE glarang[180] = {AEND}; /* glare calculation angles */ |
| 36 |
|
int nglarangs = 0; |
| 59 |
|
continue; |
| 60 |
|
} |
| 61 |
|
switch (argv[i][1]) { |
| 62 |
+ |
case 't': |
| 63 |
+ |
threshold = atof(argv[++i]); |
| 64 |
+ |
break; |
| 65 |
|
case 'r': |
| 66 |
|
sampdens = atoi(argv[++i])/2; |
| 67 |
|
break; |
| 173 |
|
exit(1); |
| 174 |
|
} |
| 175 |
|
init(); /* initialize program */ |
| 176 |
< |
comp_thresh(); /* compute glare threshold */ |
| 176 |
> |
if (threshold <= FTINY) |
| 177 |
> |
comp_thresh(); /* compute glare threshold */ |
| 178 |
|
analyze(); /* analyze view */ |
| 179 |
|
cleanup(); /* tidy up */ |
| 180 |
|
/* print header */ |