Raycast node hit edge error

Hello, see below, during the raycast with the source object initial offset to avoid hit self position I am getting this error. Is it my ignorance or something wrong in my setup?

issue:
rc-hitedge

nodes:

blend 5.0.1:
rc-issue.blend (334.3 KB)

Some kind of Raycast precision issue, maybe?

If you rotate the whole thing a little bit, it goes away:

There is something with these particular failing points, maybe it’s the way their normals oriented (they all on X-axis), maybe something else going on :person_shrugging:

Depending on what you have in mind, it might be a good idea to look for a different approach.

thanks Stray, realized with rotation z>0 the issue goes away as well, I think this might be a bug. Maybe something with how the BVH tree for RC is build. Will try to ask on BSE as well. This is an initial step for a bigger node tree where I am getting many random curves as a start, so would like to avoid this behaviour if possible without workarounds…

I found its confirmed bug #111479 - Geometry Nodes: Weird RayCast Accuracy - blender - Blender Projects