Ray-Triangle Intersection I
Check if point is inside triangle algebraically
P
P0
N1
T1
T2
T3
V2
V1
For each side of triangle
V1 = T1 - P
V2 = T2 - P
N1 = V2 x V1
Normalize N1
d1 = -P0 • N1
if ((P • N1 + d1 ) < 0)
return FALSE;
end
Previous slide
Next slide
Back to first slide
View graphic version