Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

3D Transformation of Rectangle to a Plane

  1. Mar 31, 2012 #1
    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.
     
  2. jcsd
  3. Mar 31, 2012 #2
    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 :)
     
  4. Mar 31, 2012 #3
    got it, thanks!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: 3D Transformation of Rectangle to a Plane
Loading...