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.6 by greg, Thu Nov 8 00:31:17 2012 UTC vs.
Revision 2.7 by greg, Thu Nov 8 22:05:04 2012 UTC

# Line 189 | Line 189 | rotate_rbf(RBFNODE *rbf, const FVECT invec)
189          int                     pos[2];
190          int                     n;
191   #ifdef DEBUG
192 <        {
193 <                double  tdiff = 180./M_PI*fabs(acos(invec[2])-acos(rbf->invec[2]));
194 <                if (tdiff >= 1.5)
195 <                        fprintf(stderr,
192 >        double  tdiff = 180./M_PI*fabs(acos(invec[2])-acos(rbf->invec[2]));
193 >        if (tdiff >= 1.5)
194 >                fprintf(stderr,
195                          "%s: Warning - rotated theta differs by %.1f degrees\n",
196 <                                        progname, tdiff);
198 <        }
196 >                                progname, tdiff);
197   #endif
198          for (n = rbf->nrbf; n-- > 0; ) {
199                  ovec_from_pos(outvec, rbf->rbfa[n].gx, rbf->rbfa[n].gy);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines