News:

Please note new Forum URL: forum.designcad.com

Main Menu

Rotation Angle

Started by ktk, December 23, 2006, 06:17:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ktk

As my father would say "I have a bone to pick with DC on the rotation angles".  (Never knew exactly what that meant but I was in trouble.)

Rotation Angles: I use the Left hand cord system and the directions agree with the Cartesian coordinate system.  Now the rotation about each axis does not agree with what I was taught.
For a left hand system you should be able to point your thumb in the positive axis direction and the positive rotation direction should follow direction your fingers curl as you make a fist. In DC this works for the Z axis but the X and Y axis rotations are the opposite.  I use my right hand for the X and Y axis rotation.  This can hardly be correct as it is not consistant.

prl

#1
Actually it is consistent for viewing and programming purposes.

What I mean is, playing with this, it looks to me like DesignCAD for purposes of the rotation direction is hardcoded to always use a viewing convention with the front view defined as the x axis going to the right.  Also the rotation convention is "mathematical"  - 0 is horizontal with either x or z axis pointing to the right and a positive rotation counterclockwise.

You can verify this by drawing a xyz triad plus some arbitary object in 3d space. Then switch into each of the primary viewing planes XY, ZY and XZ using the front, side, and top views on the view toolbox and rotate the object some positive rotation. Note the side view is always the right side view.

An isometric view in both coordinate systems (left hand system is shown on the left):



A side view in both coordinate systems with each object rotated +20 degrees about the X axis:



A top view in both coordinate systems with each object rotated +20 degrees about the Y axis:




ktk

Prl your rotation angles are correct but your method of deciding that these are all counter clockwise is flawed.  For the X and Y axis you are standing on the positive axis looking toward the orign.  Now for the Z axis you are standing at the orign looking out in the positive direction.  If you walked out on the positive Z axis and looked back at the orign then positive rotation would be clockwise.

I am not saying I know which is correct but I am sure that determining positive rotation must be the same for all 3 Axis.

Keith

prl

#3
Quote from: ktk on December 23, 2006, 05:52:15 PM
Now for the Z axis you are standing at the orign looking out in the positive direction.  If you walked out on the positive Z axis and looked back at the orign then positive rotation would be clockwise.

Not in my program.  Put yourself in front view.  The x axis is going to the right on the screen, the y axis is going up on screen, z can either be going in or out of the screen (doesn't matter).  A positive rotation is counterclockwise regardless of coordinate system.

Edit:

I think you may be getting hung up about thinking of this by going out on the respective positive perpendicular axis and looking back at the origin. If this were enforced through the 2d screen display, for the left hand coordinate system, the front view would actually be the back view in 3d space with x going horizontally to the left and y vertically.  Doesn't seem to work this way though.  The screen display is simply enforcing the rule that x is horizontal to the right, and y is up, regardless of coordinate system. I don't think it cares about the perpendicular axis at this point, it is thinking 2d plane only.

Anyway, for me, I know which way things will turn although maybe I haven't explained it well.

Here's a summary of what I'm saying (maybe, my head hurts thinking about this)

Regardless of coordinate system,

A rotation about the z axis when viewed from the front of a model will rotate counterclockwise for a positive rotation value.

A rotation about the x axis when viewed from the right end of a model will rotate counterclockwise for a positive rotation value.

A rotation about the y axis when viewed from the top of a model will rotate counterclockwise for a positve rotation value.

ktk

Prl

Like "Less Filling"/"Tases Great"

That is the way the rotations are: cosnsitant in the selected views but not consistant around the Axis

I'll not say anymore but thanks for listening.

Keith

prl

Said in a whisper "Mathematically you are right - - but let's not mess things up that work.  I'll send you some real beer". :)