--- ray/src/util/glare.h 1991/03/19 11:11:18 1.6 +++ ray/src/util/glare.h 1991/03/20 13:47:38 1.9 @@ -6,6 +6,8 @@ * Common data structures for glare source finding routines */ +#define DEBUG 1 + #include "standard.h" #include "view.h" #include "color.h" @@ -18,12 +20,19 @@ #define SEPS 2 /* sources this close ==> contig. */ +#define SAMIN .005 /* minimum solid angle for source */ +#define MAXBUDDY (4.*sqrt(SAMIN/PI)) /* max separation for pairing */ + +#define TOOSMALL(s) ((s)->brt*(s)->dom < threshold*SAMIN) + extern VIEW ourview; /* our view */ extern VIEW pictview; /* picture view */ extern VIEW leftview, rightview; /* leftmost and rightmost views */ extern int verbose; /* verbose reporting */ extern char *progname; /* global argv[0] */ + +extern double threshold; /* threshold value for glare sources */ extern int sampdens; /* sample density */ extern ANGLE glarang[]; /* glare calculation angles */