You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2023. It is now read-only.
if for whatever reason these indexes never happen the loop will hang forever. I am not yet sure why these indexes never happen, it might be because there are off by 1 or perhaps floating errors make them go off by 1.
It might be saver to check for tMaxX, tMaxY, tMaxZ to be smaller than the (real space) line length.
And then the code should go from t0 to t1.
while (tMaxX < RayLength) or (tMaxY < RayLength) or (tMaxZ < RayLength)
This could and would most probably make the code a lot saver.