The following capabilities are necessary,

setCapability(TransformGroup.ALLOW_PICKABLE_READ);
setCapability(TransformGroup.ALLOW_PICKABLE_WRITE);
setCapability(TransformGroup.ENABLE_PICK_REPORTING);

and use the default setPickable(true)

Rgds,

Cheng Chang Dong
http://vlab.ee.nus.edu.sg/~ccd


----- Original Message -----
From: "Catalin Barbulescu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 4:17 PM
Subject: Re: [JAVA3D] How to set the capability for vertex count?


> Hi,
>
> try something like this:
>
> PickTool.setCapabilities(new Box(x,y,z,myAppearance), PickTool.GEOMETRY);
>
>
> Catalin Barbulescu
> OTTO Software Development
> Bucharest, Romania
>
>
> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Siew Ching Tan
> Sent: 4 februarie 2002 09:45
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] How to set the capability for vertex count?
>
>
> Hi,
>
> I got this exception when I tried to perform a pick on a Shape3D object.
> However, I am not sure
> how can I set this capability.
>
> Exception occurred during Behavior execution:
> javax.media.j3d.CapabilityNotSetException: GeometryArray: no capability to
> get vertex count
>
> Help is needed! thanks!
>
> SC
>
>
===========================================================================
> 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".

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