×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

What mean the transformation matrix, rotation submatrix parameters?
2

What mean the transformation matrix, rotation submatrix parameters?

What mean the transformation matrix, rotation submatrix parameters?

(OP)
Hi!

I have a C++ program.
I know to moving my components by this transformation matrix, but I like rotating too.

The Solidworks help wrote at the MathTransform Object:

"The SolidWorks transformation matrix is stored as a homogeneous matrix of 16 elements, ordered as shown. The first 9 (a to i) are elements of a 3x3 rotational sub-matrix, the next 3 (j,k,l) define a translation vector, the next 1 (m) is a scaling factor. The last 3 elements (n,o,p) are unused in this context.

The 3X3 rotational sub-matrix represents 3 axis sets: row 1 for x-axis components of rotation, row 2 for y-axis components of rotation, and row 3 for z-axis components of rotations."

Which (value) filling the rotation sub-matrix?
What mean the 3 axis parameter? What contain it?
It is coordinate? or any distance of origin? or...?

Thanks!

ZsZs.

RE: What mean the transformation matrix, rotation submatrix parameters?

To understand the transformation matrix, you must first understand what a unit vector is.  A unit vector has a scalar value of 1, thus the sum of the squares of the vector components equals one(i.e. x2 + y2 + z2 = 1).  Unit vectors are used to express direction.

The "translation vector" is a unit vector to express the direction of translation.  The "scaling factor" is the scalar distance.  Scaling factor multiplied by translation vector yield x, y, and z components of total translation.

For rotational submatrix, each row represents the unit vector (= direction) of the transformed x, y, and z axes.  If a transformation involves pure translation and no rotation, the rotation vectors are as follows: x=(1, 0, 0); y=(0, 1, 0), z=(0, 0, 1).

batHonesty may be the best policy, but insanity is a better defense.bat
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: What mean the transformation matrix, rotation submatrix parameters?

(OP)
Thanks!
I beleive help me more a example:
If I have a component, and I moving the x=1, y=1, z=1 positions, then I set the transformation matrix 9-11. element = 1.
This is the translation vector. (I don't use the scaling factor.)
I put (move) the component this position (and it is working: the component move the position.)

But, if I want move the component x=1, y=1, z=1 positions AND I like my component rotate by 90 degree to right (center = y-axis)?
What I do?
How I use the rotation sub-matrix?
What is a center of rotation? the assembly file origin? or components origin? or my component center of body? What around rotating?

Sorry my stupid questions...

ZsZs.

RE: What mean the transformation matrix, rotation submatrix parameters?

(OP)
I haven't idea how able to rotating a component... sad

RE: What mean the transformation matrix, rotation submatrix parameters?

RE: What mean the transformation matrix, rotation submatrix parameters?

(OP)
Thanks!!!
This is very good!
I understand the rotation, and set my rotation matrix, and it work! smile

ZsZs.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources