How to know whether or not selective line passes through surface?

I have my very own OpenGL program which is c++ based running on Windows.

I have questions

  • How to know whether the selective line passes through certain surface
  • How to easily calculate collision point coordinate if the line passes through certain surface

With above, I think I can do object Boolean operation? :cry:
It would be much appreciated if there are algorithms that I can refer to or simply show me the way to do.

I’ve attached screenshots to visually show what I’m trying to do

Thank you very much!!

or:

1 Like

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.