I need to project a mesh and a line on a plane (let’s say XY) according to a random direction vector (simplest case is when it’s normal to XY). Then I need to find 2 intersection points of the border of the projected figure and (extended) projected line. How can I do that?
It seems more of a math question than a Babylon question to me. Maybe you would have more luck in a math forum?
Also, is your mesh of any shape? Or is it a sphere? If it can be any shape, what means 2 intersection points of the border of the projected figure? The projection could be any shape, so the line could intersect 0, 1, 2 or more times the projected mesh.
Thanks for the reply!
Yes, you right, since projection won’t always be a convex set, I’d get 0, 1, 2, or more intersection points. But in my case, I can be sure there are at least 2, and if more, I’d just take two points which farthest apart.