| 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) */ |
| 21 |
> |
RAYVAL ra[RPACKSIZ]; /* ray values (fifth) */ |
| 22 |
|
float *offset; /* offset array if !vbool(OBSTRUCTIONS) */ |
| 23 |
|
struct packet *next; /* next in packet list */ |
| 24 |
|
} PACKET; /* a beam packet */ |
| 34 |
|
#define packra(p) ((RAYVAL *)((p)+1)) |
| 35 |
|
|
| 36 |
|
/* input variables */ |
| 37 |
< |
#define RENDER 0 /* rendering options */ |
| 38 |
< |
#define SECTION 1 /* holodeck section boundaries */ |
| 39 |
< |
#define OCTREE 2 /* octree file name */ |
| 40 |
< |
#define RIF 3 /* rad input file */ |
| 41 |
< |
#define TIME 4 /* maximum rendering time */ |
| 42 |
< |
#define DISKSPACE 5 /* how much disk space to use */ |
| 43 |
< |
#define CACHE 6 /* amount of memory to use as cache */ |
| 44 |
< |
#define GRID 7 /* target grid size */ |
| 45 |
< |
#define OBSTRUCTIONS 8 /* shall we track obstructions? */ |
| 46 |
< |
#define VDIST 9 /* virtual distance calculation */ |
| 47 |
< |
#define REPORT 10 /* report interval and error file */ |
| 48 |
< |
#define EYESEP 11 /* eye separation distance */ |
| 37 |
> |
#define CACHE 0 /* amount of memory to use as cache */ |
| 38 |
> |
#define DISKSPACE 1 /* how much disk space to use */ |
| 39 |
> |
#define EYESEP 2 /* eye separation distance */ |
| 40 |
> |
#define GRID 3 /* target grid size */ |
| 41 |
> |
#define OBSTRUCTIONS 4 /* shall we track obstructions? */ |
| 42 |
> |
#define OCTREE 5 /* octree file name */ |
| 43 |
> |
#define RENDER 6 /* rendering options */ |
| 44 |
> |
#define REPORT 7 /* report interval and error file */ |
| 45 |
> |
#define RIF 8 /* rad input file */ |
| 46 |
> |
#define SECTION 9 /* holodeck section boundaries */ |
| 47 |
> |
#define TIME 10 /* maximum rendering time */ |
| 48 |
> |
#define VDIST 11 /* virtual distance calculation */ |
| 49 |
|
|
| 50 |
|
#define NRHVARS 12 /* number of variables */ |
| 51 |
|
|
| 52 |
|
#define RHVINIT { \ |
| 53 |
– |
{"render", 3, 0, NULL, catvalues}, \ |
| 54 |
– |
{"section", 3, 0, NULL, NULL}, \ |
| 55 |
– |
{"OCTREE", 3, 0, NULL, onevalue}, \ |
| 56 |
– |
{"RIF", 3, 0, NULL, onevalue}, \ |
| 57 |
– |
{"TIME", 2, 0, NULL, fltvalue}, \ |
| 58 |
– |
{"DISKSPACE", 3, 0, NULL, fltvalue}, \ |
| 53 |
|
{"CACHE", 2, 0, NULL, fltvalue}, \ |
| 54 |
+ |
{"DISKSPACE", 3, 0, NULL, fltvalue}, \ |
| 55 |
+ |
{"EYESEP", 3, 0, NULL, fltvalue}, \ |
| 56 |
|
{"GRID", 2, 0, NULL, fltvalue}, \ |
| 57 |
|
{"OBSTRUCTIONS",3, 0, NULL, boolvalue}, \ |
| 58 |
< |
{"VDISTANCE", 2, 0, NULL, boolvalue}, \ |
| 58 |
> |
{"OCTREE", 3, 0, NULL, onevalue}, \ |
| 59 |
> |
{"render", 3, 0, NULL, catvalues}, \ |
| 60 |
|
{"REPORT", 3, 0, NULL, onevalue}, \ |
| 61 |
< |
{"EYESEP", 3, 0, NULL, fltvalue}, \ |
| 61 |
> |
{"RIF", 3, 0, NULL, onevalue}, \ |
| 62 |
> |
{"section", 3, 0, NULL, NULL}, \ |
| 63 |
> |
{"TIME", 2, 0, NULL, fltvalue}, \ |
| 64 |
> |
{"VDISTANCE", 2, 0, NULL, boolvalue}, \ |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
/* bundle set requests */ |