--- ray/src/cv/bsdf2ttree.c 2023/07/26 15:50:03 2.59 +++ ray/src/cv/bsdf2ttree.c 2024/02/23 03:47:57 2.61 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: bsdf2ttree.c,v 2.59 2023/07/26 15:50:03 greg Exp $"; +static const char RCSid[] = "$Id: bsdf2ttree.c,v 2.61 2024/02/23 03:47:57 greg Exp $"; #endif /* * Load measured BSDF interpolant and write out as XML file with tensor tree. @@ -20,7 +20,7 @@ static const char RCSid[] = "$Id: bsdf2ttree.c,v 2.59 /* global argv[0] */ char *progname; /* reciprocity averaging option */ -static const char *recip = " -a"; +static const char *recip = ""; /* percentage to cull (<0 to turn off) */ static double pctcull = 90.; /* sampling order */ @@ -878,6 +878,7 @@ main(int argc, char *argv[]) fprintf(stderr, "\tor 3 arguments using Dx,Dy,Dz: bsdf(ix,iy,iz)\n"); goto userr; } + doptimize(1); /* optimize definitions */ ++eclock; add_wbsdf("-a", 1); add_wbsdf(tfmt[single_plane_incident], 1);