Find intersection point between a ray and a face?

In summary, to determine if a 3D polygon and a ray intersect, you can use the equations of the plane and the parametric equations of the ray. By plugging in the equations for x, y, and z in terms of t into the plane equation, you can solve for t. If t is greater than or equal to 0, then the ray intersects with the plane and you can use the ray's equations to find the intersection point. If t is less than 0, the ray does not intersect with the plane. If the coefficient of t is 0, the ray is parallel to the plane. Additionally, if given 3 points defining a triangle and 2 points defining a ray, you can check if
  • #1
silver_angel
2
0
I have a 3D polygon and a ray! Please tell me how can I know if they intersect together and how to find intersection point between them? :confused:
 
Mathematics news on Phys.org
  • #2
HOW are you given them?? If you are given their equations, then the equation of the plane should be something like: Ax+ By+ Cz= d while the ray would be given by parametric equations- x= at+ b, y= ct+ d, z= et+ f with t>= 0, say.
Put those equations for x, y, z, in terms of t, into the equation of the plane and solve the equation for t. If t>= 0, put it into the equations for the ray to find (x,y,z). If t<0 then the ray does not go through the plane- it goes the "away from" the plane.

(It is possible that the coefficient of t in the final equation will be 0. In that case the ray is parallel to the plane.)
 
  • #3
Incase I have 3 points define a triangle (x1,y1,z1),(x2,y2,z2),(x3,y3,z3). And 2 points define a ray (xr1,yr1,zr1),(xr2,yr2,zr2). Could you tell me how can I check if that ray go through that triangle and the intersection point if they have? And more, if you could, please show me the best formula for that!

Thank you so much!
 

FAQ: Find intersection point between a ray and a face?

How do you define a ray?

A ray is a line that has an endpoint and extends infinitely in one direction. It is represented by a starting point and a direction vector.

What is a face in geometry?

In geometry, a face is a flat, two-dimensional surface that is a part of a three-dimensional solid object. It has edges and vertices where different faces meet.

How do you find the intersection point between a ray and a face?

To find the intersection point between a ray and a face, you can use the parametric equation of a ray and the equation of the plane that defines the face. By setting these two equations equal to each other, you can solve for the point where the ray intersects the face.

Can a ray intersect with multiple faces?

Yes, a ray can intersect with multiple faces if the ray's path crosses through multiple faces of a three-dimensional object. In this case, there will be multiple intersection points.

What happens if the ray does not intersect with the face?

If the ray does not intersect with the face, then there is no intersection point. This could happen if the ray is parallel to the face or if the ray is facing away from the face. In this case, there is no point of intersection between the ray and the face.

Similar threads

Back
Top