You have to set the capabilities for your Shape3D objects.
You can use PickTool.setCapabilities( ) for this.

         Ricardo


At 06:06 14/6/2002, you wrote:

>Hi all!
>
>I have built a world that includes boxes, spheres and a plane. I want to be
>able to get coordinates by picking the objects. What is the best way to do
>this?
>
>I tried to do it with PickCanvas, but I always get a
>CapabilityNotSetException: "GeometryArray: no capability to get vertex
>count" when I click on the
>plane and "Shape3D: no capability to get geometry" when I click on one of the
>boxes. Which capabilities are have to be set?
>
>Here is some of the code:
>c.addMouseListener( this );
>pickCanvas = new PickCanvas( c, scene );
>pickCanvas.setMode( PickTool.GEOMETRY_INTERSECT_INFO );
>pickCanvas.setTolerance( 4.0f );
>
>I appreciate any help!
>Thanks in advance!
>Katja
>
>--
>GMX - Die Kommunikationsplattform im Internet.
>http://www.gmx.net

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.360 / Virus Database: 199 - Release Date: 7/5/2002

Reply via email to