Richard:
You may get local and global coordinates:
example: a behavior that reply to MouseEvent.MOUSE_PRESED:
Point3d p = pickCanvas.getStartPosition ();
PickIntersection pi =
pickResult[0].getClosestIntersection(p);
Point3d Pt = pi.getPointCoordinates(); // local
Point3d PtVW = pi.getPointCoordinatesVW();// Global
I hope this be useful.
Carlos
Z H escribi�:
> Hi, all!
>
> Not like the MouseRotate, the OrbitBehavior rotates
> the view platform while rotating the object. that
> means the object is actually not being moved to its
> background.
>
> the Behavior is either associated with the
> viewplatform, or with the object, which means the
> rotation or movement can only be appled to its own
> coodinates.
>
> dose anybody know if java has APIs that rotate the
> object(has its local coordinates) about a fixed view
> platform coordinates(other than the local coodinates)?
>
> Richard,
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year! http://personal.mail.yahoo.com/
>
> ===========================================================================
> 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".
Re: [JAVA3D] rotate the object about other coordinates(but not local)
Carlos Fernando Ariza Moreno Tue, 26 Jun 2001 11:59:33 -0700
- [JAVA3D] rotate the object about other coordi... Z H
- Carlos Fernando Ariza Moreno
