> I tried picking by geometry but that [didn't work]
> I set up all the correct capabilities (or so I thought) but when i run it I
> get..

> Exception occurred during Behavior execution:
> javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to allow
> intersect
> ...
>
> even though I don't seem to have an option on a Shape3D to turn this on (ie
> setCapability(Shape3D.ALLOW_INTERSECT)).

Set the ALLOW_INTERSECT capability on the Geometry in the Shape3D.  A simple way
to to set capabilities for picking on the Shape3D is to call:

 PickTool.setCapabilities(shape3d, PickTool.INTERSECT_TEST);


Use the INTERSECT_COORD flag if you want to get the coordinates of the picked
point and INTERSECT_FULL if you want to get all of the intersection info, for
example, the normal, color or tex coord at the picked point.

Doug Gehringer
Sun Microsystems

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