Essentially, the program I am making will allow the user to import a 3d model (as an fbx or obj). It will then be rendered in the window using openGL, the user will then be able to place points on the model.
So, my problem is, how can I do a collision check between these two points. So if when a straight line is drawn from one point to another, if it hits the 3d model at all, it can return 'true' for example. If it does not pass through the model at all, it will return 'false'.
The image below shows how I will be applying this. (In the image shown below the line trace turns green after it has collided with the model, I just made the image in blender to help describe what I mean.) Example of the use