From normal vector (and point) to 3D plane
조회 수: 5 (최근 30일)
이전 댓글 표시
Hey,
I am looking to plot a plane in 3D from its center point and normal vector. And on top of that it should preferably have the side length 1 (on all 4 sides).
Is that possible? And if it is, then how?
Thanks in advance...
- Jake
댓글 수: 1
Jan
2012년 3월 2일
The question is still not unique: "Side length 1 on all 4 sides" implies, that it should be a square. But it can be rotated around the normal freely.
What exactly does "plot" mean? You can e.g. display this object very easily by drawing a square and assuming, that the eye is set to a point on the normal vector above the center and rotated accordingly.
답변 (2개)
Honglei Chen
2012년 3월 2일
Like Jan mentioned, the question you are asking does not have a unique solution, so you may want to clarify it a little bit.
This being said, if you don't care about the rotation, you can use the following procedure. It is in some sense cheating because you are not deriving the shape from the normal vector, but hey it serves the plotting purpose.
- You draw a square on xy plane centered at origin, note that currently the normal is given by z axis
- You move this square to the desired center.
- You use Eular matrix to rotate the square so that the normal matches the given normal direction.
댓글 수: 0
Jakob Sørensen
2012년 3월 4일
댓글 수: 2
Honglei Chen
2012년 3월 4일
Then isn't this the same as I suggested above? You make a plane and move/rotate it.
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!