ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/bsdf2ttree.c
(Generate patch)

Comparing ray/src/cv/bsdf2ttree.c (file contents):
Revision 2.19 by greg, Thu Oct 3 17:01:02 2013 UTC vs.
Revision 2.21 by greg, Sat Nov 9 05:47:49 2013 UTC

# Line 44 | Line 44 | xml_prologue(int ac, char *av[])
44          puts("<Optical>");
45          puts("<Layer>");
46          puts("\t<Material>");
47 <        puts("\t\t<Name>Name</Name>");
48 <        puts("\t\t<Manufacturer>Manufacturer</Manufacturer>");
47 >        printf("\t\t<Name>%s</Name>\n", bsdf_name[0] ? bsdf_name : "Unknown");
48 >        printf("\t\t<Manufacturer>%s</Manufacturer>\n",
49 >                        bsdf_manuf[0] ? bsdf_manuf : "Unknown");
50          puts("\t\t<DeviceType>Other</DeviceType>");
51          puts("\t</Material>");
52          puts("\t<DataDefinition>");
# Line 122 | Line 123 | eval_isotropic(char *funame)
123  
124          data_prologue();                        /* begin output */
125          if (pctcull >= 0) {
126 <                sprintf(cmd, "rttree_reduce%s -h -ff -r 3 -t %f -g %d",
126 <                                (input_orient>0 ^ output_orient>0) ? "" : " -a",
126 >                sprintf(cmd, "rttree_reduce -a -h -ff -r 3 -t %f -g %d",
127                                  pctcull, samp_order);
128                  fflush(stdout);
129                  ofp = popen(cmd, "w");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines