From normal vector (and point) to 3D plane
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Jan
il 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.
Risposte (2)
Honglei Chen
il 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 Commenti
Jakob Sørensen
il 4 Mar 2012
2 Commenti
Honglei Chen
il 4 Mar 2012
Then isn't this the same as I suggested above? You make a plane and move/rotate it.
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!