Hello, I have improved this addon https://github.com/edap/ofxRaycaster and I think it is pretty stable now.
f you want to use rays in your #openFrameworks app, maybe this is for you:

It contains a minimal definition of a ray in 2D and in 3D. It checks for the intersection of a ray with a segment, a sphere, a triangle, a plane, an ofPrimitive, an ofPolyline an with an ofMesh.

Whenever it is possible, it uses the GLM methods, like glm::reflect and glm::intersectRayTriangle, without reinventing the wheel (and the math).

It runs continuous integration testing on mac, linux and windows. https://travisci.org/edap/ofxRaycaster and https://ci.appveyor.com/project/edap/ofxraycaster.

All the public methods are documented in the README file, and linked to the example where they are used.

It contains a mouse picker to easily identify meshes, spheres, ofPrimitives under your mouse cursor in a 3d space.

Last but not least, all the example have animated gifs, so that you do not need to compile them in order to find what you are looking for.