--- ray/src/cv/bsdfrbf.c 2014/03/21 00:42:46 2.23 +++ ray/src/cv/bsdfrbf.c 2014/03/21 01:04:42 2.24 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: bsdfrbf.c,v 2.23 2014/03/21 00:42:46 greg Exp $"; +static const char RCSid[] = "$Id: bsdfrbf.c,v 2.24 2014/03/21 01:04:42 greg Exp $"; #endif /* * Radial basis function representation for BSDF data. @@ -265,9 +265,10 @@ make_rbfrep() if (build_rbfrep(&rbfarr, &nn, 0, GRIDRES, 0, GRIDRES) <= 0) { if (nn) goto memerr; - fprintf(stderr, "%s: no usable data in make_rbfrep()\n", - progname); - exit(1); + fprintf(stderr, + "%s: warning - skipping bad incidence (%.1f,%.1f)\n", + progname, theta_in_deg, phi_in_deg); + return(NULL); } /* (re)allocate RBF array */ newnode = (RBFNODE *)realloc(rbfarr, @@ -295,7 +296,6 @@ make_rbfrep() newnode->vtotal); #endif insert_dsf(newnode); - return(newnode); memerr: fprintf(stderr, "%s: Out of memory in make_rbfrep()\n", progname);