The approach I took was to extend BranchGroup with my own class
containing all the data I need.
I then traverse up the pick results to find the first BranchGroup.

josh

>>> [EMAIL PROTECTED] 10/08/03 08:12AM >>>
Yes, thats what we do. Additionally, we recurse down the subgraph and
set the UserData into each node we come along!
Otherwise you might need to climb upwards in the graph looking for
UserData of the correct type.

Kevin Glass <[EMAIL PROTECTED]> schrieb am 08.10.2003, 13:12:33:
> Most people approach this by assigning some "UserData" to the objects
as
> their created using setUserData(). Then once you've performed you
pick you
> can use getUserData() to retrieve the identifier you assigned.
>
> Kev
>
> > Hi,
> >
> > I'm using pickmousebehavior to pick objects
> > and make transformations on them.
> > But how can i return the "name" or "id" of the picked
> > object.
> > I need to know what object i'm picking because
> > it is a menu and requires that to open one from 3 scenes.
> >

===========================================================================
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