user14205063
user14205063

Reputation:

Intersection of a ray with a segment in 3d

Ray and segment of polygon lie in the same plane. The normal vector of this plane is known. I need to know if a ray intersects this segment

Upvotes: -1

Views: 777

Answers (1)

MBo
MBo

Reputation: 80062

Choose the largest component of plane normal and make projection onto corresponding plane OXY, OXZ or OYZ (in general we can use any non-zero component)

Say Z-component is the largest, so make projection onto OXY plane. This projection is very simple - just use X and Y components. You have rather simple 2d problem now. (Example for line segments intersection).

Upvotes: 2

Related Questions