A Box Primitive is a Group which will may not be divided in the
SceneGraphPath (I am not sure). The real problem may lie in
the implementation of the Box (or Primitive) class which has
been suspected of being buggy before.
Try the same code but replace the Box Primitive with your
own visual object.
> or, can I directly
> get the SceneGraphPath without picking ?
Picking is intended to be an interactive process such that
the user determines the visual object to interact with.
If you know you want to 'work' with a specific visual
object, then picking is not what is needed. Just keep
a reference to 'the visual object' for later reference.
Exactly how you do this will depend on how your code is
written.
I hope this helps,
Dennis
xqin wrote:
>
> I want to get an interaction point between a
> pickray and the TOP surface of a Box, I follow
> the steps but there is always no interaction,
> seems that the SceneGraphPath is not right.
> Is there anyway to get the SceneGraphPath of
> the TOP surface of the Box ? or, can I directly
> get the SceneGraphPath without picking ?
>
> Thanks
> Andy
--
-----
Dennis J Bouvier
[EMAIL PROTECTED]
Find the Java 3D Tutorial "Getting Started with the Java 3D API" at
http://sun.com/desktop/java3d/collateral
===========================================================================
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".