Can You Convert a 2D Shape into 3D by Rotating It?

Click For Summary
SUMMARY

The discussion centers on transforming a 2D geometric shape defined by the equation f(x,y) = k into a 3D shape through rotation. Key steps include determining the axis of rotation and utilizing rotation matrices to express the transformation. Participants emphasize the importance of representing data points as vectors and applying matrix multiplication to derive the 3D function g(x,y,z). The conversation also touches on the implications of rotation order and the use of Euler matrices for multiple rotations.

PREREQUISITES
  • Understanding of 2D geometric functions and their equations
  • Familiarity with rotation matrices and their applications
  • Knowledge of vector representation in 3D space
  • Basic concepts of matrix multiplication and transformations
NEXT STEPS
  • Study the application of rotation matrices in 3D transformations
  • Learn about Euler angles and their representation in rotation matrices
  • Explore the implications of non-commutative properties in matrix rotations
  • Investigate the use of Mathematica for visualizing geometric transformations
USEFUL FOR

Mathematicians, computer graphics developers, and anyone interested in geometric transformations and 3D modeling techniques.

natski
Messages
262
Reaction score
2
Hi all,

I wanted to know if anyone had any advise on how to transform a 2D geometric shape into a 3D one.

I have some 2D shape which is given by the equation f(x,y) = const. = k.

I wish to rotate this 2D shape into the 3rd dimension by an angle theta and then write down what the 3D function is g(x,y,z) in terms of f(x,y) and the angle theta.

Any advise would be appreciated!

Natski
 
Mathematics news on Phys.org
Okay ... you have a curve lying in the x-y plane, right? And now you're going to "flip" it up in the z direction? Well, first, what's the axis of rotation? x-axis? y-axis? Some other line in the x-y plane? You need to decide that first.

Once you've done that, you'll need to think about where the height z comes from, as you rotate this curve. Each point on the curve should follow a circular arc about your chosen axis of rotation, so how would you describe this circle?
 
Last edited:
do you know how to use rotation matrices?
 
Ye, just catching up on it again now... I think I found a 3x3 matrix that should do the job.
 
I'd like to add something more, besides what the above two posters have pointed out. But first I'm summing up what they said:
A) You're missing one data to be defined: the axis of rotation.
B) Expressing the rotation as a (multiplying) matrix is easier.

Now, my two cents: in order to fit in B), your data points and functions f and g are better expressed in terms of vectors. For example, use the vector v = [x y 0] to represent the 2D point (note the z=0 coordinate), and the vector v' = [x' y' z'] to represent the 3D point after the rotation. Now your functions should look like f(v)=k and g(v')=k.

Then, when you have defined a matrix M to convert v' into v (probably as the inverse of the matrix that converts v into v'), then, since v = Mv', you'll obtain g(v') = f(Mv') = k as the function you're looking for.
 
see i was thinking about that but i don't think that's true. if you treat the function that plots the curve in xy space as on transformation and the rotation as another transformation then you can simply just compose one with the other? is this true?
 
ice109 said:
... and the rotation as another transformation ...
Note that the matrix M in my post do not represent the rotation, but the inverse of the rotation, actually. Other than that, I don't see why not; I tried to define how the vectors should look like, precisely to be able to apply a composition. Where do you see a potential problem?
 
Ok, thanks for your help, I think I have solved this problem now using a matrix multiplication. I checked by curves using Mathematica and they look very reasonable.
 
To add to this topic... does the order of rotations matter? If you are using matrices one would think it was non-commutative, but intuition suggests that the order of rotations should not affect the final geometry.

Also, if you have two or three rotations, then these can always be expressed as just one matrix which is the Euler matrix, right? R(alpha,beta,gamma)

My problem with the Euler rotation matrix is the fact alpha beta and gamma refer to rotations about z, y' and z'' respectively. Is there a way of writing the matrix as a rotation about x, y and z?

Natski
 
Last edited:
  • #10
I think an alternative way of asking this question is can I perform a rotation of the 2D shape f(x,y) about a straight line y=g(x) and get x', y' and z'?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K