I think you can not obtain the name of the component using the methods, you
should first calculate the coordinate of this component under Loalce, and
compare it with the picking coordinate to determine which object it is. When
you pick an object, you just obtain some serial no of all components. If qny
further questions, please le me know.

Rgds,

Cheng Chang Dong
http://vlab.ee.nus.edu.sg/~ccd


----- Original Message -----
From: "SUBSCRIBE JAVA3D-INTEREST clsiu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 6:25 AM
Subject: [JAVA3D] URGENT!!!:About picking


> Dear everyone,
>   I am new to Java3D.  Now I am working on a project about a cluster
monitoring system with virtual reality with Java3D support and the working
period is quite tight.  In the project, it is possible for the user to click
on something to get the information about the cluster. I chose to use a 3D
graphic which consist of different parts so that the user can get different
information by clicking on the keyboard, or the monitor.  But I found it
difficult in handling the case. I use
>         (pickElement.toString())
> to try to get the name of the element the mouse click on.  However, I
cannot get the actual name of the element clicked.  What I get back is
something shape3D123045....etc seems to be the address of the element.....in
fact, I try to use namedObject.getName(theName) to get the name oif each
part of the element: I can get back the name such as: keyboard,
line1,line2...etc.....
>   Is there any method that I can get the actual name by picking?  I would
be appreciate that if anyone can help......
>
> Siu
>
>
===========================================================================
> 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".

Reply via email to