I can’t help with code, but there have been a few other ray tracing codes presented here. This thread has a long discussion, and if you check out the links right after the original post, there are other threads to follow. Maybe one of those will give you some new ideas.
1 Like