Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ibraheem_A_
Beginner
42 Views

Many rays missing triangle edges

Dear embree developer(s),

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:

 
problem01.jpg
Inline image 1

Lots of misses are happening, looking closer we can see this is only an issue at the triangle edges:

 

 
problem02.jpg

 

 
I was looking more into the documentation and noticed a 'robust' option. So I tried it out and I got this:

 
problem03.jpg

 
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!
0 Kudos
2 Replies
SvenW_Intel
Moderator
42 Views

The robust mode is the best accuracy you can currently get with Embree. I will look into your case of small cubes, maybe we find a fix to improve accuracy even more.

Ibraheem_A_
Beginner
42 Views

Thanks Sven. The latest robust mode code solved all issues I had.

Reply