--- ray/src/rt/ray.h 1989/02/02 10:41:14 1.1 +++ ray/src/rt/ray.h 1991/05/23 08:12:57 1.5 @@ -1,4 +1,4 @@ -/* Copyright (c) 1986 Regents of the University of California */ +/* Copyright (c) 1990 Regents of the University of California */ /* SCCSid "$SunId$ LBL" */ @@ -42,10 +42,17 @@ typedef struct ray { FVECT rop; /* intersection point */ FVECT ron; /* intersection surface normal */ double rod; /* -DOT(rdir, ron) */ - double ros, rox[4][4]; /* transform back to object space */ + FULLXF *rox; /* object transformation */ FVECT pert; /* surface normal perturbation */ COLOR pcol; /* pattern color */ COLOR rcol; /* returned ray value */ + double rt; /* returned effective ray length */ } RAY; extern double raynormal(); + +extern int dimlist[]; /* dimension list for distribution */ +extern int ndims; /* number of dimensions so far */ +extern int samplendx; /* index for this sample */ + +#define MAXDIM 16 /* maximum number of dimensions */