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

Comparing ray/src/cv/bsdf2rad.c (file contents):
Revision 2.4 by greg, Thu Nov 21 20:09:26 2013 UTC vs.
Revision 2.6 by greg, Mon Feb 17 21:56:22 2014 UTC

# Line 10 | Line 10 | static const char RCSid[] = "$Id$";
10   #include <string.h>
11   #include <stdlib.h>
12   #include <math.h>
13 + #include "rtprocess.h"
14   #include "bsdfrep.h"
15  
16   const float     colarr[6][3] = {
# Line 90 | Line 91 | main(int argc, char *argv[])
91   #ifdef DEBUG
92          fprintf(stderr, "Minimum BSDF set to %.4f\n", bsdf_min);
93   #endif
94 <        min_log = log(bsdf_min*.5);
94 >        min_log = log(bsdf_min*.5 + 1e-5);
95                                                  /* output BSDF rep. */
96          for (n = 0; (n < 6) & (2*n+3 < argc); n++) {
97                  double  theta = atof(argv[2*n+2]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines