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

Comparing ray/src/cv/bsdfinterp.c (file contents):
Revision 2.5 by greg, Thu Nov 8 00:31:17 2012 UTC vs.
Revision 2.8 by greg, Wed Dec 12 04:49:59 2012 UTC

# Line 126 | Line 126 | in_tri(const RBFNODE *v1, const RBFNODE *v2, const RBF
126          return(sgn2 == sgn3);
127   }
128  
129 < /* Test and set for edge */
129 > /* Test (and set) bitmap for edge */
130   static int
131   check_edge(unsigned char *emap, int nedges, const MIGRATION *mig, int mark)
132   {
# Line 260 | Line 260 | e_advect_rbf(const MIGRATION *mig, const FVECT invec)
260                  if (rbf == NULL)
261                          goto memerr;
262                  memcpy(rbf, mig->rbfv[0], n);   /* just duplicate */
263 +                rbf->next = NULL; rbf->ejl = NULL;
264                  return(rbf);
265          }
266          full_dist = acos(DOT(mig->rbfv[0]->invec, mig->rbfv[1]->invec));
# Line 269 | Line 270 | e_advect_rbf(const MIGRATION *mig, const FVECT invec)
270                  if (rbf == NULL)
271                          goto memerr;
272                  memcpy(rbf, mig->rbfv[1], n);   /* just duplicate */
273 +                rbf->next = NULL; rbf->ejl = NULL;
274                  return(rbf);
275          }
276          t /= full_dist;
# Line 410 | Line 412 | advect_rbf(const FVECT invec)
412                      float               mc = mtx_coef(miga[2],i,k);
413                      const RBFVAL        *rbf2k;
414                      double              rad2k;
413                    FVECT               vout;
415                      int                 pos[2];
416                      if ((mb <= FTINY) & (mc <= FTINY))
417                          continue;
# Line 419 | Line 420 | advect_rbf(const FVECT invec)
420                      rad2k = R2ANG(rbf2k->crad);
421                      rbf->rbfa[n].crad = ANG2R(sqrt(srad2 + t*rad2k*rad2k));
422                      ovec_from_pos(v2, rbf2k->gx, rbf2k->gy);
423 <                    geodesic(vout, v1, v2, t, GEOD_REL);
424 <                    pos_from_vec(pos, vout);
423 >                    geodesic(v2, v1, v2, t, GEOD_REL);
424 >                    pos_from_vec(pos, v2);
425                      rbf->rbfa[n].gx = pos[0];
426                      rbf->rbfa[n].gy = pos[1];
427                      ++n;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines