Skip to content

Commit

Permalink
Merge pull request #62 from ybh1998/max_ray_length
Browse files Browse the repository at this point in the history
Fix MaxRayLength calculation error
  • Loading branch information
chbergmann authored Feb 9, 2025
2 parents 9cf249f + 303fa06 commit bbb1238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def traceRay(self, fp, lineAndEnergy):
for dNewRay in dNewRays:
nl = Part.makeLine(
neworigin,
neworigin - dNewRay[0] * fp.MaxRayLength / neworigin.Length)
neworigin - dNewRay[0] * fp.MaxRayLength / dNewRay[0].Length)
newlines.append((nl, dNewRay[1]))

for line in newlines:
Expand Down

0 comments on commit bbb1238

Please sign in to comment.