Sign in to follow this  
wlb2001

Ray Triangle Intersection in 2D space.

Recommended Posts

Hi Guys: I am looking for a really fast solustion for Ray Triangle Intersection in 2D space. 1. A point P(xp,yp), and a Vecter Dir(xd,yd) 2. Three points T1,T2,T3 constructed a triangle. 3. The point P must be in the triangle, witch means the ray cast from inside of the triangle to the outside (or maybe cast alone one edge of the triangle). I don't think the ray-line intersection detection will be the fastest way to do this, anyone have any ideas? PS: small issue. for example: If the P = T1 and the Dir = T2 - T1 then the intersection point should be T2(not any points on the T12 EDGE), and the intersection EDGE should be T23,(not the T12). Thanks for your help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this