--- ray/src/cv/bsdf2ttree.c 2012/10/23 05:10:42 2.3 +++ ray/src/cv/bsdf2ttree.c 2012/11/07 03:04:23 2.4 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: bsdf2ttree.c,v 2.3 2012/10/23 05:10:42 greg Exp $"; +static const char RCSid[] = "$Id: bsdf2ttree.c,v 2.4 2012/11/07 03:04:23 greg Exp $"; #endif /* * Load measured BSDF interpolant and write out as XML file with tensor tree. @@ -29,14 +29,14 @@ interp_isotropic() char cmd[128]; int ix, ox, oy; FVECT ivec, ovec; - double bsdf; + float bsdf; #if DEBUG fprintf(stderr, "Writing isotropic order %d ", samp_order); if (pctcull >= 0) fprintf(stderr, "data with %d%% culling\n", pctcull); else fputs("raw data\n", stderr); #endif if (pctcull >= 0) { /* begin output */ - sprintf(cmd, "rttree_reduce -h -a -fd -r 3 -t %d -g %d", + sprintf(cmd, "rttree_reduce -h -a -ff -r 3 -t %d -g %d", pctcull, samp_order); fflush(stdout); ofp = popen(cmd, "w"); @@ -91,14 +91,14 @@ interp_anisotropic() char cmd[128]; int ix, iy, ox, oy; FVECT ivec, ovec; - double bsdf; + float bsdf; #if DEBUG fprintf(stderr, "Writing anisotropic order %d ", samp_order); if (pctcull >= 0) fprintf(stderr, "data with %d%% culling\n", pctcull); else fputs("raw data\n", stderr); #endif if (pctcull >= 0) { /* begin output */ - sprintf(cmd, "rttree_reduce -h -a -fd -r 4 -t %d -g %d", + sprintf(cmd, "rttree_reduce -h -a -ff -r 4 -t %d -g %d", pctcull, samp_order); fflush(stdout); ofp = popen(cmd, "w");