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.9 by greg, Tue Nov 13 04:23:38 2012 UTC vs.
Revision 2.11 by greg, Thu Nov 22 06:07:17 2012 UTC

# Line 82 | Line 82 | new_input_direction(double new_theta, double new_phi)
82   int
83   use_symmetry(FVECT vec)
84   {
85 <        double  phi = get_phi360(vec);
85 >        const double    phi = get_phi360(vec);
86  
87          switch (inp_coverage) {
88          case INP_QUAD1|INP_QUAD2|INP_QUAD3|INP_QUAD4:
# Line 189 | Line 189 | rotate_rbf(RBFNODE *rbf, const FVECT invec)
189          int                     pos[2];
190          int                     n;
191  
192 <        for (n = rbf->nrbf; n-- > 0; ) {
192 >        for (n = ((-.01 > phi) | (phi > .01))*rbf->nrbf; n-- > 0; ) {
193                  ovec_from_pos(outvec, rbf->rbfa[n].gx, rbf->rbfa[n].gy);
194                  spinvector(outvec, outvec, vnorm, phi);
195                  pos_from_vec(pos, outvec);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines