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

Comparing ray/src/cv/bsdfrbf.c (file contents):
Revision 2.2 by greg, Tue Nov 13 04:23:38 2012 UTC vs.
Revision 2.4 by greg, Wed Mar 20 01:00:22 2013 UTC

# Line 51 | Line 51 | add_bsdf_data(double theta_out, double phi_out, double
51          if (!isDSF)
52                  val *= ovec[2];         /* convert from BSDF to DSF */
53  
54 +                                        /* update BSDF histogram */
55 +        if (val < BSDF2BIG*ovec[2] && val > BSDF2SML*ovec[2])
56 +                ++bsdf_hist[histndx(val/ovec[2])];
57 +
58          pos_from_vec(pos, ovec);
59  
60          dsf_grid[pos[0]][pos[1]].vsum += val;
# Line 260 | Line 264 | make_rbfrep(void)
264          nn = 0;                 /* compute sum for normalization */
265          while (nn < newnode->nrbf)
266                  newnode->vtotal += rbf_volume(&newnode->rbfa[nn++]);
267 <
267 > #ifdef DEBUG
268 >        fprintf(stderr, "Integrated DSF at (%.1f,%.1f) deg. is %.2f\n",
269 >                        get_theta180(newnode->invec), get_phi360(newnode->invec),
270 >                        newnode->vtotal);
271 > #endif
272          insert_dsf(newnode);
273  
274          return(newnode);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines