News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Direction of rotations

Started by samdavo, March 22, 2014, 01:08:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

Maybe I'm wrong but ...
I would say that directions of rotations are inconsistent, and confusing -
I enclose prl's "xyzhere axes", with the addition of what happens when you rotate a line  along each of the axes.   

A positive rotation about Z rotates the X axis to the Y axis (I would call that left hand system, i.e. curling the fingers of the left hand from X to Y, your thumb points down the Z axis).   (edit - make that in the positive direction of the z axis)

However - a positive rotation about X rotates the Z axis to the Y axis (I would call that right hand system (??) );

And likewise, a positive rotation about Y rotates the X axis to the Z axis (I would call that right hand system (??) ).

This is something that (I find) requires trial and error, i.e. whether to rotate by a positive or negative angle. 

And it doesn't help that the cursor turns to a rotation symbol that suggests that clockwise is +ve, when frequently it is the opposite.   (2 cents).

Am I missing something?


prl

Quote from: samdavo on March 22, 2014, 01:08:47 AM
Am I missing something?

You are.

All the angles being turned are consistently counter-clockwise, meaning mathematical angles. 

In front view (XY plane)
In right view (ZY plane)
In top view (XZ plane)

(I'm hoping you aren't drafting with all those fingers curled and thumbs pointing every which way, you could put your eyes out).

samdavo

#2
ahh - thanks for that - perfectly logical :)  makes for a pretty short thread yes ? lol.

PS The only thing that is still a bit strange is that the "R = rotation" cursor ( V22.1 anyway) shows a clockwise rotation with a + sign in the middle , i.e. as positive - but no biggie, once you know that that doesn't literally mean , errr,  what it appears to mean. :) 
cheers.

prl

Quote from: samdavo on March 22, 2014, 02:52:11 AM
ahh - thanks for that - perfectly logical :)  makes for a pretty short thread yes ? lol.

Sam, by the way, you're not wrong in your original post, it is just easier to think of it the way I'm describing( rather than say based on the primary views/plane relationships your thumb is always pointing at your nose.)

prl

Quote from: samdavo on March 22, 2014, 02:52:11 AM
PS The only thing that is still a bit strange is that the "R = rotation" cursor ( V22.1 anyway) shows a clockwise rotation with a + sign in the middle , i.e. as positive -

You're probably right about the cursor.  It has been a beta issue often.  I tend not to get involved with that one.  The user GUI DesignCAD rotation command is so overloaded with options and "I'm your friend" features, I can't and don't use it.   Rolled my own simpler versions.

samdavo

Tell you what prl ...  (and this is just a comment from the peanut gallery - I imagine I'll stick with the DCAD system,  albeit a cross between LH and RH systems )..

If you change to Right Hand Coordinate system,
X to Y is +ve
Y to Z is +ve, and
Z to X is +ve.

Furthermore Plan is still anticlockwise
So is Front
and also Side (Right).

The thing that is arguably inferior to the DCAD System is that the "L" shape is sometimes an upside down L,  (top);  and sometimes back to front , (side view). 2 cents.  Just a comment.

Bob P

If anyone is interested in command-line macros for rotation, see the attached.  The nice thing is that if the selection is rotated in the wrong direction, just undo and repeat the macro with a negative(d) value.
Note that you must select something (and set a handle) before you run the macro.

Dr PR

Sam,

You are correct that rotations in 3D are unpredictable. While it is easy to say they are always mathematically counter clockwise, it isn't always easy to say which direction is counterclockwise - counterclockwise to what?

The direction of rotation seems to depend upon viewing angle. Select an object and rotate it a given angle in a given direction. Now rotate the view and try it again. All bets are off which way it will rotate. The problem is that you are trying to get a rotation relative to your view angle, and not to a defined axis, and as your view angle changes the meaning of left/right and up/down changes.

Rotations about a line or defined axis depend upon which "direction" the line or axis is pointing. The direction is determined by point order. So imagine you create a line, duplicate it, and then reverse the point order in the duplicate. Rotations using these lines as the axis of rotation will go in opposite directions as you view it. Mathematically they may be counterclockwise to the line itself, but the rotation will not be "counterclockwise" to your view point.

I have been using the program for a quarter century and I can never predict which way something will rotate. Worse still, I am certain that I guess wrong more than half the time (or at least it seems that way).

Phil
DesignCAD user since 1987

samdavo

#8
ok - whether or not anyone takes this up but ...

I enclose a dcd drawing of a briefcase - which I have used before, mainly because  FOR THIS OBJECT (irrespective of axes), Front, Top and Side are self-evident.    But this time I have changed from the default to  Q\General\RH coordinates. (Hence I say above that most will probably not take it up - I might presevere for a week or two :) )

Also I have added to the xyzhere axes, with arcs which obviosly span 90 degrees between X, Y and Z axes.  But I have segmented the arcs in 15deg segments.

Hence if I want to rotate the briefcase about a line at 30 degrees to X axis but in the XY plane  (i.e. OP,  drawn between O and one of the segments of the arc in question).
Then that line is copied (CD) -  and I rotate about an axis defined by two points - either C then D; or D then C (you get the reverse).

i.e. if one were to rotate "about a line between 2 points", and if you click C then D, you would get one direction;

and if you click D then C you would get the reverse.


I ASSUMED that a rotation about that line (CD or DC) (parallel to inclined axis OP)  will behave predictably, i.e. right hand rotation based on direction of thumb.  However, (unless I am wrong but I don't think so),  I am finding it a bit tricky and/or depends on something I am not taking into account - more research required. (2 cents)

samdavo

#9
Having played around with this problem i.e. trying to get a reliable rotation about an inclined axis, OP, the only way I can achieve that is to go to View\Working Plane\"Set (new) working plane" , and set the X axis along the axis you want.  After than, rotate about (temporary) X axis  - seems to be more reliable that "about a (random) line, OP" or even about an axis defined by 2 points - you (seem to) get the right hand rotation "every" time - then reset working plane.

Without using that technique, I find direction of rotations about inclined axes to be unreliable (2 cents)

PS I have only checked this with RH Coords, but I don't see why LH coords wouldn't also work, (with this temporary axis trick) - especially as X axis (temporary or permanent) has a RH rotation irrespective of whether Q/LHS or Q/RHS are chosen.  PS Q/LHS also works when you set rotn axis as temp X axis.

samdavo

#10
Herewith the "xyzherePLUS" (Left Hand Coordinate System) with the addition of rotation directions, and 15 degree increments in each of the arcs. - 2 cents

prl

Quote from: samdavo on March 23, 2014, 03:50:27 AM
Herewith the "xyzherePLUS" (Left Hand Coordinate System) with the addition of rotation directions, and 15 degree increments in each of the arcs. - 2 cents

Did you add this to the xyzhere code?

prl

#12
Quote from: samdavo on March 23, 2014, 01:31:48 AM
Without using that technique, I find direction of rotations about inclined axes to be unreliable (2 cents)

I would agree without a frame of reference, as Phil indicates, you're lost in 3d space and you're guessing which way things will rotate.

Case in point, the attached movie shows the two point line rotations for your suitcase with the Big Mac.  Everything is the same for the two models except for the point order of setting the two points for the rotation axis.

I'm issuing the command from the command line.   SRO2 (means Selected Rotate 2 point line).  I'm also setting the handle for the suitcase right before I set the two points for the rotation command.  In both cases (literally), it is at the end of the rotation line.  Just some easy place I picked.

prl

This kind of brings us back to the pitching and rolling topic, where I was setting temporary work planes, and you were using the two point line rotations.   Temporary work planes was the only way I could ensure I knew which way the rotation angle was being turned.

prl

Quote from: Dr PR on March 22, 2014, 08:44:41 AM
Worse still, I am certain that I guess wrong more than half the time (or at least it seems that way).

For two point line rotations you have four possible guesses:

The Angle and P1 then P2
The -Angle and P1 then P2
The Angle and P2 then P1
The -Angle and P2 then P1