03/26/2002
15-462 Graphics I
18
Ray-Polygon Intersection I
•
Assume planar polygon
1.
Intersect ray with plane containing polygon
2.
Check if intersection point is inside polygon
•
Plane
–
Implicit form: ax + by + cz + d = 0
–
Unit normal:
n
= [a
b
c
0]
T
with a
2
+ b
2
+ c
2
= 1
•
Substitute:
•
•
Solve: