Hi,

I have a scene graph that consists of many BranchGroups (every BranchGroup is a part 
of a big geometry, e.g. a door of a house) which consists of Switch groups and a lot 
of Shape3Ds. I have managed to pick Shape3Ds using PickCanvas. From PickCanvas I get a 
PickResult (called result) from which I can get a reference to Shape3Ds using

result.getNode(PickResult.SHAPE3D)

In my application I would like to be able to pick a part (a BranchGroup) of a big 
geometry. Some parts are hidden (inside other parts etc.), so I use 
pickCanvas.pickAllSorted() in order to get my PickResult. The problem is that my 
PickResult only include picked Shape3Ds. Why can I not just do

result.getNode(PickResult.BRANCH_GROUP)

and get the picked BranchGroup? I know I can use SceneGraphPath from the picked 
Shape3Ds to get the BranchGroups, but I do not like that. I do not want to loop 
through all the picked Shape3Ds and check if they belong to the same BranchGroup etc. 
Is it possible to pick a BranchGroup even if its Shape3D objects are not pickable 
(e.g. I might put a Switch group between the BranchGroup and the Shape3Ds that has 
setPickable(false))?

/Anders

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