I am facing a ray tracing problem using MATLAB and now I am a bit frustrated. I have some points in the 3D space that define a surface. I represented it with small 3-D triangles using the Delaunay algorithm with the matlab function "trisurf". Then, I have my "ray", that is basically a 3-D vector. My target is to find the point of intersection (X, Y, Z) between this vector (that is a curve, not a straight line). Does exist in matlab a function able to do this or anyone has any suggestion? Thanks in advance for your help,
Leonardo