I am trying to get geometry-based picking to work in my code, but I
keep running into CapabilityNotSet exceptions:
Exception occurred during Behavior execution:
javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to
allow intersect
at javax.media.j3d.Shape3D.intersect(Shape3D.java:572)
I find this strange because I am in fact setting the ALLOW_INTERSECT
capability (along with anything else that I think might help):
box.setCapability(Shape3D.ALLOW_GEOMETRY_READ);
box.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
box.setCapability(Geometry.ALLOW_INTERSECT);
box.setCapability(Primitive.ENABLE_GEOMETRY_PICKING);
box.setCapability(Node.ALLOW_PICKABLE_READ);
box.setCapability(Node.ALLOW_PICKABLE_WRITE);
box.setCapability(Node.ENABLE_PICK_REPORTING);
Has anyone used geometry-based picking before? I'd love to see some
sample code. Bounds-based picking works, but the selection area is too
course to be useful.
Any ideas would be greatly appreciated.
Christian Wiech - 26 Feb 2004 11:52 GMT
If you mean something like picking a
point from a geometry than have a
look at the Point Picker example at
http://www.j3d.org/utilities/index.html
It worked for me in my projects.
Cheers
Christian
Am Tue, 24 Feb 2004 00:50:06 -0800 schrieb Ian Wojtowicz:
> I am trying to get geometry-based picking to work in my code, but I
> keep running into CapabilityNotSet exceptions:
[quoted text clipped - 20 lines]
>
> Any ideas would be greatly appreciated.