ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/data.h
(Generate patch)

Comparing ray/src/rt/data.h (file contents):
Revision 2.2 by greg, Fri Jun 30 16:07:42 1995 UTC vs.
Revision 2.3 by greg, Thu Feb 15 18:46:56 1996 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1996 Regents of the University of California */
2  
3   /* SCCSid "$SunId$ LBL" */
4  
5   /*
6   *  data.h - header file for routines which interpolate data.
7 *
8 *     6/4/86
7   */
8  
9 < #define  MAXDDIM        8               /* maximum dimensions for data array */
9 > #define  MAXDDIM        5               /* maximum data dimensions */
10  
11   #define  DATATYPE       float           /* single precision to save space */
12   #define  DATATY         'f'             /* format for DATATYPE */
13  
14   typedef struct datarray {
15          char  *name;                    /* name of our data */
16 <        int  nd;                        /* number of dimensions */
16 >        short  type;                    /* DATATY, RED, GRN or BLU */
17 >        short  nd;                      /* number of dimensions */
18          struct {
19 <                double  org, siz;               /* coordinate domain */
19 >                DATATYPE  org, siz;             /* coordinate domain */
20                  int  ne;                        /* number of elements */
21 <                double  *p;                     /* point locations */
21 >                DATATYPE  *p;                   /* point locations */
22          } dim[MAXDDIM];                 /* dimension specifications */
23 <        DATATYPE  *arr;                 /* the data */
23 >        union {
24 >                DATATYPE  *d;                   /* float data */
25 >                COLR  *c;                       /* RGB data */
26 >        }  arr;                         /* the data */
27          struct datarray  *next;         /* next array in list */
28   } DATARRAY;                     /* a data array */
29  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines