Firstly, thanks for the great library! Really enjoying playing around with it so far.
I have a question related to how Embree handles triangles that are aligned (and overlapping) in the same plane. To illustrate this please refer to the 2D examples below. In case 1, one triangle mesh (b) is enclosed within another (a) and one side is aligned and overlapping. In case 2, the triangle meshes (a and b) are side by side but share a side.
In both of these cases I would like to receive intersection hits for each intersection. In case 1 this would be two back faces and in case 2 this would be one back face and one front face. With what I have tested so far, it seems Embree always returns a single intersection in these cases. The intersection always has the same primitive ID, so there is no z-fighting.
Is there a way I can receive intersection hits in such cases? Thanks in advance!