find the intersection point between 2 plane in matlab
显示 更早的评论
Let's say I have: the set of 3D data point (xi,yi,zi) contains around 10,000 points located in plane L
I also have : plane M which is specified by normal vector n , and point A(xA,yA,zA). How to find the intersection point between 2 plane L & M?


采纳的回答
更多回答(1 个)
Ameer Hamza
2018-5-13
0 个投票
For plane L find a normal to that plane using this FEX submission. This will give you a normal and a point on the plane L. Since you already have a normal and point to plane M, use another FEX submission to calculate their intersection.
7 个评论
Ameer Hamza
2018-5-13
plane_intersect() can returns two arguments, first is point and second in the direction vector of the line. You can use the two to construct a line. Call it like this
[point direction] = plane_intersect(...);
ha ha
2018-5-13
Ameer Hamza
2018-5-13
The point returned is the point of intersection. It belongs to both planes. So the point returned by plane_intersect lies of plane L as well as on plane M.
Ameer Hamza
2018-5-13
编辑:Ameer Hamza
2018-5-13
If you just want to get 1000 points which lie on the line of intersection and plane L. Then you just need to sample the line of intersection. One example
p = [1 2 3]; % point of intersection returned by 'plane_intersect'
dir = [0.2 0.6 0.6]; % direction of intersection returned by 'plane_intersect'
t = (0:0.1:100)'; % to get 1000 samples
points = p.*(1-t)+(p+dir).*t; % p and dir must be row vectors
If you want points that lie on the line of intersection and also belongs to the initial dataset (xi, yi, zi) for plane L, then it is highly unlikely that any of that point will precisely lie on the line of intersection.
ha ha
2018-5-13
类别
在 帮助中心 和 File Exchange 中查找有关 Structural Mechanics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

