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

Comparing ray/src/common/testBSDF.c (file contents):
Revision 1.10 by greg, Thu Feb 2 04:52:46 2017 UTC vs.
Revision 1.11 by greg, Tue Apr 11 16:14:05 2017 UTC

# Line 47 | Line 47 | vec_from_deg(FVECT v, double theta, double phi)
47   static void
48   printXYZ(const char *intro, const SDValue *vp)
49   {
50 +        if (vp->cieY <= 1e-9) {
51 +                printf("%s0 0 0\n", intro);
52 +                return;
53 +        }
54          printf("%s%.3e %.3e %.3e\n", intro,
55                          vp->spec.cx/vp->spec.cy*vp->cieY,
56                          vp->cieY,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines