- Obtain the equation of the plane
- If the point (x,y,z) satisfy the equation, the point is on the plane. I don't think you can use the word 'left' and 'right' to describe the position before you have specified the reference axis.
Position of points relative to a plane
조회 수: 19 (최근 30일)
이전 댓글 표시
I'm looking for a way to decide whether a point is on, to the left, or to the right of a plane. I have it to work for a selected point. For example, given a number of (x,y,z) coordinates, I'm able to determine what points are on, or across the a line drawn from a point say x = 3. The code I developed works perfect. However, I want to expand on this so that any plane can be used not just the yz plane (x = 3). I want to do a batch check on all the points in a variable called vertices. There will always be three point coordinates in this variable.
댓글 수: 0
채택된 답변
Yao Li
2013년 5월 16일
댓글 수: 2
Diego Hens
2020년 8월 21일
Did you find a solution to this? I have the same problem. I want to erase all points under a plane from an stl
추가 답변 (1개)
Jan
2013년 5월 16일
If the plane is defined by one point P and the normal vector N, is is easy to decide on which side (defined by the orientation of N) the point Q is: check the sign of:
v = dot(Q - P, N);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!