17 |
|
int2 hd; /* holodeck section (first) */ |
18 |
|
int4 bi; /* beam index (second) */ |
19 |
|
int4 nr; /* number of rays (third) */ |
20 |
+ |
int4 nc; /* number calculated (fourth) */ |
21 |
|
RAYVAL ra[RPACKSIZ]; /* ray values (fourth) */ |
22 |
|
float *offset; /* offset array if !vbool(OBSTRUCTIONS) */ |
23 |
|
struct packet *next; /* next in packet list */ |
27 |
|
int2 hd; /* holodeck section (first) */ |
28 |
|
int4 bi; /* beam index (second) */ |
29 |
|
int4 nr; /* number of rays (third) */ |
30 |
+ |
int4 nc; /* number calculated (fourth) */ |
31 |
|
} PACKHEAD; /* followed by ray values */ |
32 |
|
|
33 |
|
#define packsiz(nr) (sizeof(PACKHEAD)+(nr)*sizeof(RAYVAL)) |
34 |
< |
#define packray(p) (RAYVAL *)((PACKHEAD *)(p)+1) |
34 |
> |
#define packra(p) ((RAYVAL *)((p)+1)) |
35 |
|
|
36 |
|
/* input variables */ |
37 |
|
#define RENDER 0 /* rendering options */ |
38 |
< |
#define VIEW 1 /* starting view */ |
39 |
< |
#define SECTION 2 /* holodeck section boundaries */ |
40 |
< |
#define OCTREE 3 /* octree file name */ |
41 |
< |
#define RIF 4 /* rad input file */ |
42 |
< |
#define EXPOSURE 5 /* section exposure value */ |
43 |
< |
#define TIME 6 /* maximum rendering time */ |
44 |
< |
#define DISKSPACE 7 /* how much disk space to use */ |
45 |
< |
#define CACHE 8 /* amount of memory to use as cache */ |
46 |
< |
#define GRID 9 /* target grid size */ |
47 |
< |
#define OBSTRUCTIONS 10 /* shall we track obstructions? */ |
38 |
> |
#define SECTION 1 /* holodeck section boundaries */ |
39 |
> |
#define OCTREE 2 /* octree file name */ |
40 |
> |
#define RIF 3 /* rad input file */ |
41 |
> |
#define EXPOSURE 4 /* section exposure value */ |
42 |
> |
#define TIME 5 /* maximum rendering time */ |
43 |
> |
#define DISKSPACE 6 /* how much disk space to use */ |
44 |
> |
#define CACHE 7 /* amount of memory to use as cache */ |
45 |
> |
#define GRID 8 /* target grid size */ |
46 |
> |
#define OBSTRUCTIONS 9 /* shall we track obstructions? */ |
47 |
> |
#define VDIST 10 /* virtual distance calculation */ |
48 |
|
#define OCCUPANCY 11 /* expected occupancy probability */ |
49 |
|
#define REPORT 12 /* report interval and error file */ |
50 |
|
|
52 |
|
|
53 |
|
#define RHVINIT { \ |
54 |
|
{"render", 3, 0, NULL, catvalues}, \ |
53 |
– |
{"view", 2, 0, NULL, NULL}, \ |
55 |
|
{"section", 3, 0, NULL, NULL}, \ |
56 |
|
{"OCTREE", 3, 0, NULL, onevalue}, \ |
57 |
|
{"RIF", 3, 0, NULL, onevalue}, \ |
61 |
|
{"CACHE", 2, 0, NULL, fltvalue}, \ |
62 |
|
{"GRID", 2, 0, NULL, fltvalue}, \ |
63 |
|
{"OBSTRUCTIONS",3, 0, NULL, boolvalue}, \ |
64 |
+ |
{"VDISTANCE", 2, 0, NULL, boolvalue}, \ |
65 |
|
{"OCCUPANCY", 3, 0, NULL, onevalue}, \ |
66 |
|
{"REPORT", 3, 0, NULL, onevalue}, \ |
67 |
|
} |
68 |
|
|
69 |
|
/* bundle set requests */ |
70 |
< |
#define BS_NEW 0 /* replace current set with new one */ |
71 |
< |
#define BS_ADD 1 /* add to current set */ |
72 |
< |
#define BS_DEL 2 /* delete from current set */ |
70 |
> |
#define BS_NEW 1 /* replace current set with new one */ |
71 |
> |
#define BS_ADD 2 /* add to current set */ |
72 |
> |
#define BS_ADJ 3 /* adjust current set quantities */ |
73 |
> |
#define BS_DEL 4 /* delete from current set */ |
74 |
|
|
75 |
|
extern char *progname; /* our program name */ |
76 |
|
extern char *hdkfile; /* holodeck file name */ |
77 |
|
extern char froot[]; /* root file name */ |
78 |
|
|
79 |
+ |
extern char *outdev; /* output device name */ |
80 |
+ |
|
81 |
|
extern int nowarn; /* turn warnings off? */ |
82 |
|
|
78 |
– |
extern double expval; /* global exposure value */ |
79 |
– |
|
83 |
|
extern int ncprocs; /* number of compute processes */ |
84 |
+ |
|
85 |
+ |
extern double expval; /* global exposure value */ |
86 |
|
|
87 |
|
extern time_t starttime; /* time we got started */ |
88 |
|
extern time_t endtime; /* time we should end by */ |