1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ LBL" */ |
4 |
< |
|
1 |
> |
/* RCSid: $Id$ */ |
2 |
|
/* |
3 |
|
* Common definitions for mkillum |
4 |
|
*/ |
5 |
+ |
|
6 |
+ |
#include "standard.h" |
7 |
+ |
|
8 |
+ |
#include "object.h" |
9 |
+ |
|
10 |
+ |
#include "otypes.h" |
11 |
+ |
|
12 |
|
/* illum flags */ |
13 |
< |
#define IL_FLAT 0x1 /* flat surface */ |
14 |
< |
#define IL_LIGHT 0x2 /* light rather than illum */ |
15 |
< |
#define IL_COLDST 0x4 /* colored distribution */ |
16 |
< |
#define IL_COLAVG 0x8 /* compute average color */ |
13 |
< |
#define IL_DATCLB 0x10 /* OK to clobber data file */ |
13 |
> |
#define IL_LIGHT 0x1 /* light rather than illum */ |
14 |
> |
#define IL_COLDST 0x2 /* use color distribution */ |
15 |
> |
#define IL_COLAVG 0x4 /* use average color */ |
16 |
> |
#define IL_DATCLB 0x8 /* OK to clobber data file */ |
17 |
|
|
18 |
|
struct illum_args { |
19 |
|
int flags; /* flags from list above */ |
20 |
|
char matname[MAXSTR]; /* illum material name */ |
21 |
|
char datafile[MAXSTR]; /* distribution data file name */ |
22 |
|
int dfnum; /* data file number */ |
23 |
< |
char altmatname[MAXSTR]; /* alternate material name */ |
23 |
> |
char altmat[MAXSTR]; /* alternate material name */ |
24 |
> |
int sampdens; /* point sample density */ |
25 |
|
int nsamps; /* # of samples in each direction */ |
26 |
< |
int nalt, nazi; /* # of altitude and azimuth angles */ |
27 |
< |
FVECT orient; /* coordinate system orientation */ |
26 |
> |
float minbrt; /* minimum average brightness */ |
27 |
> |
float col[3]; /* computed average color */ |
28 |
|
}; /* illum options */ |
29 |
|
|
30 |
|
struct rtproc { |
31 |
|
int pd[3]; /* rtrace pipe descriptors */ |
32 |
|
float *buf; /* rtrace i/o buffer */ |
33 |
|
int bsiz; /* maximum rays for rtrace buffer */ |
34 |
+ |
float **dest; /* destination for each ray result */ |
35 |
|
int nrays; /* current length of rtrace buffer */ |
36 |
|
}; /* rtrace process */ |