intersection between plane and 3d points
조회 수: 14 (최근 30일)
이전 댓글 표시
Hi
I have to compute the intersection between a plane and a surface (for testing I generated it with meshgrid but I will have scattered 3d points instead sampled with fixed step in both x and y axis). I computed the distance from the plane of all points and picked only those whose distance was lower than a threshold.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168007/image.png)
it is correct so far but I would like to compute a smooth profile (a point every sample step), I managed to do something as shown in the figure but it works only for particular orientation of the plane so it is not general. (Actually what I did was to compute the mean of blocks of N red points and then apply linear interpolation in the middle)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168009/image.png)
Any ideas? Thank you
댓글 수: 1
Are Mjaavatten
2017년 12월 23일
A very good solution is given by the Matworks support team at: https://se.mathworks.com/matlabcentral/answers/93623-how-do-i-plot-the-line-of-intersection-between-two-surfaces
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!