18 |
|
|
19 |
|
#define SEPS 2 /* sources this close ==> contig. */ |
20 |
|
|
21 |
+ |
#define SAMIN .005 /* minimum solid angle for source */ |
22 |
+ |
#define MAXBUDDY (4.*sqrt(SAMIN/PI)) /* max separation for pairing */ |
23 |
+ |
|
24 |
+ |
#define TOOSMALL(s) ((s)->brt*(s)->dom < threshold*SAMIN) |
25 |
+ |
|
26 |
|
extern VIEW ourview; /* our view */ |
27 |
|
extern VIEW pictview; /* picture view */ |
28 |
|
extern VIEW leftview, rightview; /* leftmost and rightmost views */ |
30 |
|
extern int verbose; /* verbose reporting */ |
31 |
|
extern char *progname; /* global argv[0] */ |
32 |
|
|
33 |
+ |
extern double threshold; /* threshold value for glare sources */ |
34 |
+ |
|
35 |
|
extern int sampdens; /* sample density */ |
36 |
|
extern ANGLE glarang[]; /* glare calculation angles */ |
37 |
|
extern int nglarangs; |
60 |
|
|
61 |
|
extern struct source { |
62 |
|
FVECT dir; /* source direction */ |
63 |
< |
float dom; /* solid angle of source */ |
64 |
< |
float brt; /* average source brightness */ |
63 |
> |
double dom; /* solid angle of source */ |
64 |
> |
double brt; /* average source brightness */ |
65 |
|
struct srcspan *first; /* first span for this source */ |
66 |
|
struct source *next; /* next source in list */ |
67 |
|
} *donelist; /* finished sources */ |