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

Comparing ray/src/cv/bsdfrep.c (file contents):
Revision 2.20 by greg, Wed Feb 19 05:16:06 2014 UTC vs.
Revision 2.23 by greg, Mon Mar 24 06:07:46 2014 UTC

# Line 304 | Line 304 | insert_dsf(RBFNODE *newrbf)
304          for (rbf = dsf_list; rbf != NULL; rbf = rbf->next)
305                  if (DOT(rbf->invec, newrbf->invec) >= 1.-FTINY) {
306                          fprintf(stderr,
307 <                                "%s: Duplicate incident measurement (ignored)\n",
308 <                                        progname);
307 >                "%s: Duplicate incident measurement ignored at (%.1f,%.1f)\n",
308 >                                        progname, get_theta180(newrbf->invec),
309 >                                        get_phi360(newrbf->invec));
310                          free(newrbf);
311                          return(-1);
312                  }
# Line 610 | Line 611 | load_bsdf_rep(FILE *ifp)
611          clear_bsdf_rep();
612          if (ifp == NULL)
613                  return(0);
614 <        if (getheader(ifp, headline, NULL) < 0 || single_plane_incident < 0 |
615 <                        !input_orient | !output_orient) {
614 >        if (getheader(ifp, headline, NULL) < 0 || (single_plane_incident < 0) |
615 >                        !input_orient | !output_orient |
616 >                        (grid_res < 16) | (grid_res > 256)) {
617                  fprintf(stderr, "%s: missing/bad format for BSDF interpolant\n",
618                                  progname);
619                  return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines