hello,
You probably have to set the allow_geometry_read capability of your shape.
Note you effectively have to do that on the shape and not on the primitive object
like I notice you do.
so you have to do something like this :
cylinder.getShape().setCapability(Shape3D.ALLOW_GEOMETRY_READ);
maybe you'll also have to set the allow_intersect cap of your geometry
cylinder.getShape().getGeometry().setCapability(Geometry.ALLOW_INTERSECT);
greets,
mattie
8/6/01 4:09:20 PM, Desiree Hilbring <[EMAIL PROTECTED]> wrote:
>I am trying to pick a Cylinder, but I am getting a
>
>javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to get
>geometry
>
>exception.
>Which capability do I have to set?
>I tried:
>
> cylinder = new Cylinder(radius,height,
>Cylinder.ENABLE_APPEARANCE_MODIFY | Cylinder.GENERATE_NORMALS |
>Cylinder.ENABLE_GEOMETRY_PICKING, createAppearance());
> cylinder.setCapability(Node.ALLOW_PICKABLE_READ);
> cylinder.setCapability(Node.ALLOW_PICKABLE_WRITE);
> cylinder.setCapability(Node.ENABLE_PICK_REPORTING);
>
>for the cylinder.
>
>while cylinder is a child of boreholelayer, which is a branchgroup with
>the following capabilities:
>
>this.setCapability(BranchGroup.ENABLE_PICK_REPORTING);
> this.setCapability(Geometry.ALLOW_INTERSECT);
> this.setCapability(Group.ALLOW_CHILDREN_READ);
> this.setCapability(Group.ALLOW_CHILDREN_WRITE);
> this.setCapability(BranchGroup.ALLOW_DETACH);
> this.setCapability(Group.ALLOW_CHILDREN_EXTEND);
===========================================================================
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".