Find intersection point between a ray and a face?

AI Thread Summary
To determine the intersection point between a ray and a 3D polygon, specifically a triangle, the equations of the plane and the ray must be established. The plane can be represented by the equation Ax + By + Cz = d, while the ray is defined by parametric equations. By substituting the ray's equations into the plane's equation, one can solve for the parameter t. If t is greater than or equal to zero, the intersection point can be calculated; if t is less than zero, the ray does not intersect the plane. Additionally, checking if the intersection point lies within the triangle can be done using barycentric coordinates or other geometric methods.
silver_angel
Messages
2
Reaction score
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
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.)
 
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!
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top