I'm not too surprised. The way to get around it is to store a UserObject
in the inner shape, to refer to the containing shape. That way, you can
examine the UserObject of the picked shape to determine the REAL picked
shape. If you see what I mean.

The idea is that UserObject is a payload that you can use to tag things
with so that you can get a hold of something you otherwise wouldn't be
able to.

Lewis.

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Cooper
Sent: 04 August 2003 20:14
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Picking shapes containing shapes


I have a 3d world with one 3D shape entirely containing another. When I
perform a pickAllSorted on the outer object, near the edge, the result
is always as I expect : a PickResult[] containing only the outer object.
Unfortunately when I pick nearer the middle of the shape, the
PickResult[] contains two PickResults which are both the interior shape!

Any ideas on why this happens would be most appreciated.

cheers

Dave

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