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

Comparing ray/src/common/bsdf_m.c (file contents):
Revision 3.25 by greg, Sun Apr 21 22:58:40 2013 UTC vs.
Revision 3.27 by greg, Sat Jun 29 21:03:44 2013 UTC

# Line 170 | Line 170 | fo_getndx(const FVECT v, void *p)
170                  return -1;
171          if ((v[2] < 0) | (v[2] > 1.))
172                  return -1;
173 <        pol = 180.0/M_PI*acos(v[2]);
173 >        pol = 180.0/M_PI*Acos(v[2]);
174          azi = 180.0/M_PI*atan2(v[1], v[0]);
175          if (azi < 0.0) azi += 360.0;
176          for (li = 1; ab->lat[li].tmin <= pol; li++)
# Line 602 | Line 602 | SDloadMtx(SDData *sd, ezxml_t wtl)
602                                          /* separate diffuse components */
603          extract_diffuse(&sd->rLambFront, sd->rf);
604          extract_diffuse(&sd->rLambBack, sd->rb);
605 <        extract_diffuse(&sd->tLamb, (sd->tf != NULL) ? sd->tf : sd->tb);
605 >        if (sd->tf != NULL)
606 >                extract_diffuse(&sd->tLamb, sd->tf);
607 >        if (sd->tb != NULL)
608 >                extract_diffuse(&sd->tLamb, sd->tb);
609                                          /* return success */
610          return SDEnone;
611   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines