3D Transformation of Rectangle to a Plane

Click For Summary
SUMMARY

The discussion focuses on transforming a rectangle defined by four points in the xy plane to an arbitrary plane defined by a point p and a normal vector n. The transformation involves two main steps: first, rotating the rectangle using a rotation matrix based on an orthonormal basis formed by the normal vector, the binormal vector, and their cross product; second, translating the rectangle to center it at point p. The approach emphasizes the importance of achieving a correct orientation of the rectangle in the new plane before translation.

PREREQUISITES
  • Understanding of 3D coordinate systems and transformations
  • Familiarity with rotation matrices and orthonormal basis
  • Knowledge of vector operations, including cross products
  • Basic concepts of translation in 3D space
NEXT STEPS
  • Study the construction and application of rotation matrices in 3D transformations
  • Learn about orthonormal basis vectors and their significance in 3D geometry
  • Explore vector translation techniques in 3D space
  • Investigate practical applications of 3D transformations in computer graphics
USEFUL FOR

3D graphics developers, computer vision engineers, and anyone interested in geometric transformations in three-dimensional space.

DukeLuke
Messages
92
Reaction score
0
Let's say you have four points that define a rectangle in the xy plane centered at the origin (with the x,y axes bisecting the sides). How can you transform these points so that the rectangle lies in an arbitrary plane (defined by a point p and a normal vector n) so it is centered about point p. I realize some orientation of the four points in this plane is needed for a unique transformation, but I'm stuck even getting an arbitrary orientation of these four points in the plane.

I'm thinking the correct approach may be to rotate the four points about the origin until the plane they create is normal to n, and then move them to the correct position. At this point I'm not even sure how to rotate the points until the plane they create is normal to n.
 
Physics news on Phys.org
First you need to rotate the rectangle so that
It's on the arbitrary plane. This can be done
Using a rotation matrix whose rows or cols
Are the components of the orthonormal basis
Vectors: normal, binormal and their cross product.
Next is to translate so that its center is the point p.
This is easily done by translating using a vector equal
to (p - rectangle origin). The details are an exercise for u :D
Try it yourself first :)
 
got it, thanks!
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K