Hello Silvano,
At 19:21 07.08.00 +0000, you wrote:
>How can I apply a geometric transformation (rotation, translation and
>scale) in
>a 3D object (for example, a cube), trigged by a AWT button instead of
>using the
>mouse?
Connect an ActionListener to your buttons, and in the actionPerformed method
you create Transform3D objects with new values or modify some Transform3D
object you keep handy for this purpose, then setTransform these Transform3Ds
into the TransformGroups you want to change.
If this explanation was too brief, you are welcome to look at the code I
wrote for
an ongoing project of mine, which I've posted to
http://www.smotricz.com/Java3D/ .
The classes with the interesting stuff for you in them are Nav3D and WorldView.
The only TransformGroup I modify is the one that moves the ViewPlatform around.
I'm sorry it looks so complicated; your application would probably be much
simpler.
Hth,
-Carl-
===========================================================================
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".