Hi Andy,
it will be checked first if pickray intersects the bounding box of the shape
you are interested in. If it does next will be to check the according
geometry of the shape. If pickray intersects the geometry, method
intersect(SceneGraphPath path, PickRay pickRay, double[] dist) of Shape3D
returns true.
You have to check all shapes whose bounding box intersect with pickray if
their geometry was hitten. Then choose the shortest distance.
You also have to set some capabilities like ENABLE_PICK_REPORTING (Group)
and ALLOW_INTERSECT (Geometry).
I would recommand you first take a simple scene with just one shape to
understand what's going on.
Gernot Veith
[EMAIL PROTECTED]
http://www.janet.de
> -----Original Message-----
> From: xqin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 08, 1999 8:34 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] get SceneGraphPath
>
>
> 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
>
> ==============================================================
> =============
> 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".