I mean that once a given axis in space is fixed by the user, then all
subsequent mouse-dragging motions are mapped to rotations of the
target TransformGroup around that fixed *axis*.
For example, in the special case in which the fixed axis is the
y-axis, then all mouse-dragging motions would map to rotY transforms.
If the fixed axis is of the form (1, 1, 1) + (0, t, 0), where t ranges
over the reals, then the mouse dragging motions would map to a
translation from (1, 1, 1) to the origin (or to any point (0, u, 0)),
followed by a rotY, followed by a translation back to (1, 1, 1),
i.e. a rotation around a fixed axis through (1, 0, 1) parallel to the
Y-axis.
I am interested in the general case in which the fixed axis can have
any orientation in space, and doesn't necessarily go through the
origin.
KJ
Date: Wed, 27 Jun 2001 12:05:31 +0800
From: Chris Thorne <[EMAIL PROTECTED]>
Arbitrary axis or arbitrary point in space *and* a specified axis?
Chris
Kynn Jones wrote:
> I need to map mouse-dragging motions to rotations around an arbitrary
> axis (not necessarily through the origin). Does anybody know where I
> can find code (preferably some extension of MouseRotate or
> MouseBehavior) to do this?
>
> Thanks,
>
> KJ
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
----------------------------------------------------------------------------
----------------------------------------------------------------------------
This Email may contain confidential and/or privileged information and is
intended solely for the addressee(s) named. If you have received this
information in error, or are advised that you have been posted this Email by
accident, please notify the sender by return Email, do not redistribute it,
delete the Email and keep no copies.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".