From normal vector (and point) to 3D plane
11 views (last 30 days)
Show older comments
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 Comment
Jan
on 2 Mar 2012
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.
Answers (2)
Honglei Chen
on 2 Mar 2012
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 Comments
Jakob Sørensen
on 4 Mar 2012
2 Comments
Honglei Chen
on 4 Mar 2012
Then isn't this the same as I suggested above? You make a plane and move/rotate it.
See Also
Categories
Find more on Data Distribution Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!