I am having problems with rays that exactly touch triangle edges (from what I can see). My task is to voxelize a mesh then from each voxel center shoot many rays towards the surface and capture the closest hit.
A hit by this definition should always happen but as you can see from this figure where I am visualizing only the misses with green lines:
Lots of misses are happening, looking closer we can see this is only an issue at the triangle edges:
I was looking more into the documentation and noticed a 'robust' option. So I tried it out and I got this:
Much better but still not perfect. So my question is: are there any other options I can try to hopefully guarantee accurate results? is there a more accurate fallback mechanism when a ray misses?
Thanks for making available this fantastic library!