Ray Tracing return index from within mesh?

I read over the ray tracing/casting tutorial and I noticed something; you can easily find out what mesh you hit and at what coordinates, but it didn’t seem to mention anything about which polygon you hit. I’m using a rather large mesh to represent a lot of different ‘environmental pieces’ and I need more information on the collision, perhaps a function that could return the indexes of the vertices that make up the polygon you hit from within the mesh’s vertex array.

You can get the triangle from the mesh using the returned index like this:

Triangle store = new Triangle();

hitSpatial.getMesh().getTriangle(index, store);