Hello everyone. I am new to this forum and have a simple question (at least I hope it is simple).

I have a segment defined by two points (P0 and P1) and a convex polygon defined by a set of vertices n. I would like to know how to find the point of intersection (if it exists) for the segment and the convex polygon - can anyone help me?

BTW, the points for both the segment and the convex polygon are defined in X, Y, and Z coordinate space and the segment could be parallel to the plane containing the convex polygon.

Thank you.