Hi everybody,
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);
Thanks for your help in advance
Desiree
oooooooooooooooooooooooooooooooooooooooooooooooo
Desiree Hilbring
Institut fuer Photogrammetrie und Fernerkundung
Universitaet Karlsruhe, Germany
email: [EMAIL PROTECTED]
# 0721 6083676
oooooooooooooooooooooooooooooooooooooooooooooooo
===========================================================================
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".