+ 1

How to find whether a vector crosses a triangle in python?

23rd Oct 2019, 5:38 AM
sujay simha
sujay simha - avatar
6 Antworten
+ 2
here, I have a triangle and two points. now, if I draw a straight line between the two points, I want to check if the line crosses the triangle
23rd Oct 2019, 6:05 AM
sujay simha
sujay simha - avatar
+ 1
What do you mean?
23rd Oct 2019, 6:01 AM
Trigger
Trigger - avatar
+ 1
Do you have the coordinates for the triangle angles?
23rd Oct 2019, 6:09 AM
Trigger
Trigger - avatar
+ 1
yes
23rd Oct 2019, 6:24 AM
sujay simha
sujay simha - avatar
+ 1
Well you could check whether vector line crosses any of triangles outlines.
23rd Oct 2019, 9:23 AM
Seb TheS
Seb TheS - avatar
+ 1
can you show me how Seb TheS? please?
23rd Oct 2019, 9:25 AM
sujay simha
sujay simha - avatar