| 118 |
|
/* Loaded BSDF data */ |
| 119 |
|
typedef struct { |
| 120 |
|
char name[SDnameLn]; /* BSDF name (usu. derived from file) */ |
| 121 |
+ |
char matn[SDnameLn]; /* material name */ |
| 122 |
+ |
char makr[SDnameLn]; /* manufacturer */ |
| 123 |
|
char *mgf; /* geometric description (if any) */ |
| 124 |
|
float dim[3]; /* width, height, thickness (meters) */ |
| 125 |
|
SDValue rLambFront; /* diffuse front reflectance */ |
| 157 |
|
|
| 158 |
|
/* Allocate new spectral distribution function */ |
| 159 |
|
extern SDSpectralDF *SDnewSpectralDF(int nc); |
| 160 |
+ |
|
| 161 |
+ |
/* Add component(s) to spectral distribution function */ |
| 162 |
+ |
extern SDSpectralDF *SDaddComponent(SDSpectralDF *odf, int nadd); |
| 163 |
|
|
| 164 |
|
/* Free a spectral distribution function */ |
| 165 |
|
extern void SDfreeSpectralDF(SDSpectralDF *df); |