ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/genBSDF.pl
(Generate patch)

Comparing ray/src/util/genBSDF.pl (file contents):
Revision 2.82 by greg, Sun Jun 9 20:52:13 2019 UTC vs.
Revision 2.83 by greg, Mon Jun 10 13:58:49 2019 UTC

# Line 325 | Line 325 | sub do_ttree_dir {
325                                  qq{-e "r3=rand(+3.17603772*recno+83.766771)" } .
326                                  qq{-e "r4=rand(-1.5839226*recno-59.82712)" } .
327                                  qq{-e "Dx=1-2*(\$1+r1)/$ns" } .
328 <                                qq{-e "Dy=if(\$1-.5,1/$ns,sqrt(1-Dx*Dx))*(2*r2-1)" } .
328 >                                qq{-e "Dy=min(1/$ns,sqrt(1-Dx*Dx))*(2*r2-1)" } .
329                                  qq{-e "Dz=sqrt(1-Dx*Dx-Dy*Dy)" } .
330                                  qq{-e "xp=(\$3+r2)*(($dim[1]-$dim[0])/$nx)+$dim[0]" } .
331                                  qq{-e "yp=(\$2+r3)*(($dim[3]-$dim[2])/$ny)+$dim[2]" } .
# Line 340 | Line 340 | sub do_ttree_dir {
340                                  qq{-e 'r3=rand(+3.17603772*recno+83.766771)' } .
341                                  qq{-e 'r4=rand(-1.5839226*recno-59.82712)' } .
342                                  qq{-e 'Dx=1-2*(\$1+r1)/$ns' } .
343 <                                qq{-e 'Dy=if(\$1-.5,1/$ns,sqrt(1-Dx*Dx))*(2*r2-1)' } .
343 >                                qq{-e 'Dy=min(1/$ns,sqrt(1-Dx*Dx))*(2*r2-1)' } .
344                                  qq{-e 'Dz=sqrt(1-Dx*Dx-Dy*Dy)' } .
345                                  qq{-e 'xp=(\$3+r3)*(($dim[1]-$dim[0])/$nx)+$dim[0]' } .
346                                  qq{-e 'yp=(\$2+r4)*(($dim[3]-$dim[2])/$ny)+$dim[2]' } .

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines