[JAVA3D] basic picking

2003-08-14 Thread Sandegren, Eric S.
Hello!   I am in need of some assistance in researching some basic picking.  The short story is - I have a scene with a number of TGs, which I would like to be able to select (one at a time).  All I want to do is be able to print the object's name in my sout.   I read about the classes for picki

Re: [JAVA3D] basic picking

2003-08-14 Thread Richard Bone
You can use getUserData() and setUserData(Object o).  It can contain any object so a String containing the name can be used. Here is a piece of code I use that gets the names and positions of BranchGroups and TransformGroups.  The first piece of code gets all the Groups (pass it the sceneg