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

Comparing ray/src/cv/bsdfrbf.c (file contents):
Revision 2.31 by greg, Wed Aug 1 17:00:22 2018 UTC vs.
Revision 2.34 by greg, Wed Jun 29 15:52:07 2022 UTC

# Line 38 | Line 38 | static const char RCSid[] = "$Id$";
38   #define SMOOTH_MSE      5e-5            /* acceptable mean squared error */
39   #endif
40   #ifndef SMOOTH_MSER
41 < #define SMOOTH_MSER     0.01            /* acceptable relative MSE */
41 > #define SMOOTH_MSER     0.0016          /* acceptable relative MSE */
42   #endif
43   #define MAX_RAD         (GRIDRES/8)     /* maximum lobe radius */
44  
# Line 381 | Line 381 | make_rbfrep()
381                          get_theta180(newnode->invec), get_phi360(newnode->invec),
382                          newnode->vtotal);
383   #endif
384 <        insert_dsf(newnode);
384 >        if (insert_dsf(newnode) < 0)
385 >                return(NULL);
386          return(newnode);
387   memerr:
388          fprintf(stderr, "%s: Out of memory in make_rbfrep()\n", progname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines