As I understand it, you have three lines intersecting the plane, and you want to calculate the orientation of the triangle formed by the intersection points without calculating the intersection points themselves?
If yes: do you have a plane
N (x - x 0 ) = 0
and six points ...
l 1a , l 1b , l 2a , l 2b , l 3a , l 3b
... forming three lines
l 1 = l 1a + t (l 1b - l 1a )
l 2 = l 2a + u (l 2b - l 2a )
l 3 = l 3a + v (l 3b - l 3a )
The intersection points of these lines to the plane occur at certain values โโof t, u, v, which I will call t i , u i , v <sub> yasub>
N (l 1a + t i (l 1b - l 1a ) - x 0 ) = 0
N (x 0 - l 1a )
t i = ----------------
N (l 1b - l 1a )
(similarly for u i , v i )
Then specific intersection points
intersect 1 = l 1a + t i (l 1b - l 1a )
intersect 2 = l 2a + u i (l 2b - l 2a )
intersect 3 = l 3a + v i (l 3b - l 3a )
Finally, the orientation of your triangle
orientation = direction of (intersect 2 - intersect 1 ) x (intersect 3 - intersect 1 )
(x is the cross product). Work backwards by plugging in the values โโand you will have an equation for an orientation based only on N, x 0 and your six points.
BlueRaja - Danny Pflughoeft
source share