Finding the Intersection of a Line and Plane

Click For Summary
To find the intersection of a line defined by a point on a surface and its normal vector with a triangle in space, the process involves using the triangle's vertices and calculating the normal vector. The formula provided for the intersection point (intPt) is based on the relationship between the point on the surface (p1), the normal vector, and the triangle's vertices (v1, v2, v3). The dot products in the formula yield values that help determine the position along the line where it intersects the plane defined by the triangle. By solving for the parameter t in the equation that relates the point's movement along the line to the plane's normal vector, the intersection can be accurately calculated. This method effectively combines geometric and algebraic principles to find the intersection point.
pandalolwut
Messages
1
Reaction score
0
Say you have a point on one surface. You know the normal vector of the surface at this point. You have a triangle somewhere else in space defined by it's three vertices. How do you find the intersection - if any - between the normal vector at the point on the surface with the triangle?

I found this article on Wikipedia, and I've been using the formula at the very bottom. Assuming it is correct - and please tell me if it is - I want to understand the process more. Could someone please explain to me what is going on here? What do each of the dot products yield and if you had to abstract this process into words what would you say?

More practically, here is the exact formula that I'm using right now; could someone check if it is correct?
I have the three vertices of the triangle defined as v1,v2,v3.
The normal vector of this triangle is norm.
The point on the surface is p1, and p2 is the point gained by adding the normal vector of the surface onto p1.
intPt is the intersection point.

Then am I right in saying that:
intPt = p1 + \frac{(v1-p1) \bullet norm}{(p2-p1) \bullet norm} \times (p2-p1)

Please tell me if anything needs to be clarified and thank you for any help at all in advance!
 
Last edited:
Physics news on Phys.org
If you have a plane with normal vector norm, then the plane is defined as the set of all vectors x such that
x\cdot norm = \alpha
where alpha is some number. If I start at a point p1 and I start moving in direction p2-p1, then my position looks like
p_1 + t(p_2-p_1)
as t varies, and what I am interested in what is
(p_1 + t (p_2-p_1))\cdot norm
and for what value of t is this equal to \alpha.

In this case we haven't been told what \alpha is explicitly. But we know that v_1 is on the plane, so
v_1 \cdot norm = \alpha

From here you should be able to solve for t explicitly and get your final answer.
 
  • Like
Likes WWGD
Thread 'How to define a vector field?'
Hello! In one book I saw that function ##V## of 3 variables ##V_x, V_y, V_z## (vector field in 3D) can be decomposed in a Taylor series without higher-order terms (partial derivative of second power and higher) at point ##(0,0,0)## such way: I think so: higher-order terms can be neglected because partial derivative of second power and higher are equal to 0. Is this true? And how to define vector field correctly for this case? (In the book I found nothing and my attempt was wrong...

Similar threads

  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K