| 12 |
|
#include <stdlib.h> |
| 13 |
|
#include <math.h> |
| 14 |
|
#include "platform.h" |
| 15 |
+ |
#include "rtprocess.h" |
| 16 |
|
#include "calcomp.h" |
| 17 |
|
#include "bsdfrep.h" |
| 18 |
|
/* global argv[0] */ |
| 45 |
|
puts("<Optical>"); |
| 46 |
|
puts("<Layer>"); |
| 47 |
|
puts("\t<Material>"); |
| 48 |
< |
puts("\t\t<Name>Name</Name>"); |
| 49 |
< |
puts("\t\t<Manufacturer>Manufacturer</Manufacturer>"); |
| 48 |
> |
printf("\t\t<Name>%s</Name>\n", bsdf_name[0] ? bsdf_name : "Unknown"); |
| 49 |
> |
printf("\t\t<Manufacturer>%s</Manufacturer>\n", |
| 50 |
> |
bsdf_manuf[0] ? bsdf_manuf : "Unknown"); |
| 51 |
|
puts("\t\t<DeviceType>Other</DeviceType>"); |
| 52 |
|
puts("\t</Material>"); |
| 53 |
|
puts("\t<DataDefinition>"); |
| 124 |
|
|
| 125 |
|
data_prologue(); /* begin output */ |
| 126 |
|
if (pctcull >= 0) { |
| 127 |
< |
sprintf(cmd, "rttree_reduce%s -h -ff -r 3 -t %f -g %d", |
| 126 |
< |
(input_orient>0 ^ output_orient>0) ? "" : " -a", |
| 127 |
> |
sprintf(cmd, "rttree_reduce -a -h -ff -r 3 -t %f -g %d", |
| 128 |
|
pctcull, samp_order); |
| 129 |
|
fflush(stdout); |
| 130 |
|
ofp = popen(cmd, "w"); |