I`m 3d modeler and I write scripts from time to time.
Please tell me how to find intersection point between line and polygon (plane - not infinity).
I`ve got line vertices (points) A,B. I have vector build from those points (A-B).
I`ve got four vertices (points) of polygon (CDEF). I`ve got also N - normal vector to polygon plane.
I need to check is there any intersection between line and polygon and find that intersection point.
I`ve found few code snippets but they don`t work as they should, So I thought that I should understand that problem well before I start to code it.
Maybe do you know any book with similair problems like this?
Please tell me how to find intersection point between line and polygon (plane - not infinity).
I`ve got line vertices (points) A,B. I have vector build from those points (A-B).
I`ve got four vertices (points) of polygon (CDEF). I`ve got also N - normal vector to polygon plane.
I need to check is there any intersection between line and polygon and find that intersection point.
I`ve found few code snippets but they don`t work as they should, So I thought that I should understand that problem well before I start to code it.
Maybe do you know any book with similair problems like this?