How to detect which of the faces has been clicked
I think you should be able to figure out the face bu retrieving the normal vector of the face that you intersected. You should have only 6 different normals ;)
I got it in the end just using intersects[0].face.materialIndex for the material index
That's smarter :)
Most helpful comment
I got it in the end just using intersects[0].face.materialIndex for the material index