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

Comparing ray/src/rt/m_wgmdf.c (file contents):
Revision 2.13 by greg, Fri Jun 20 16:48:39 2025 UTC vs.
Revision 2.14 by greg, Fri Jun 20 18:05:30 2025 UTC

# Line 298 | Line 298 | agaussamp(WGMDDAT *wp)
298                                  nstarget = 1;
299                  }
300                  scolorblack(scol);
301 <                dimlist[ndims_inc] = (int)(size_t)wp->mtp;
301 >                dimlist[ndims_inc()] = (int)(size_t)wp->mtp;
302                  maxiter = MAXITER*nstarget;
303                  for (nstaken = ntrials = 0; (nstaken < nstarget) &
304                                                  (ntrials < maxiter); ntrials++) {
# Line 347 | Line 347 | agaussamp(WGMDDAT *wp)
347                          scalescolor(scol, d);
348                          saddscolor(wp->rp->rcol, scol);
349                  }
350 <                dec_ndims;
350 >                dec_ndims();
351          }
352                                          /* compute transmission */
353          if ((wp->specfl & (SP_TRAN|SP_TPURE|SP_TBLT)) == SP_TRAN &&
# Line 364 | Line 364 | agaussamp(WGMDDAT *wp)
364                          } else
365                                  nstarget = 1;
366                  }
367 <                dimlist[ndims_inc] = (int)(size_t)wp->mtp;
367 >                dimlist[ndims_inc()] = (int)(size_t)wp->mtp;
368                  maxiter = MAXITER*nstarget;
369                  for (nstaken = ntrials = 0; (nstaken < nstarget) &
370                                                  (ntrials < maxiter); ntrials++) {
371                          if (ntrials)
372                                  d = frandom();
373                          else
374 <                                d = urand(ilhash(dimlist,ndims)+1823+samplendx);
374 >                                d = urand(ilhash(dimlist,ndims)+4337+samplendx);
375                          multisamp(rv, 2, d);
376                          d = 2.0*PI * rv[0];
377                          cosp = tcos(d) * wp->ts.u_alpha;
# Line 401 | Line 401 | agaussamp(WGMDDAT *wp)
401                          saddscolor(wp->rp->rcol, sr.rcol);
402                          ++nstaken;
403                  }
404 <                dec_ndims;
404 >                dec_ndims();
405          }
406   }
407  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines