Dear All: how do I set the capability for Pick result object to read a cone ? this the code that does it.
public void mouseClicked(MouseEvent e) { String stdev; JSObject win = JSObject.getWindow(this); pickCanvas.setShapeLocation(e); PickResult pickResult = pickCanvas.pickClosest(); if (pickResult != null) { Cone pickedCone = (Cone) pickResult.getNode(PickResult.PRIMITIVE); Switch thisSwitch = (Switch) pickResult.getNode(PickResult.SWITCH); } } i am getting the error below javax.media.j3d.CapabilityNotSetException: Shape3D: no capability to get geometry at javax.media.j3d.Shape3D.numGeometries(Shape3D.java:398) at com.sun.j3d.utils.picking.PickResult.storeGeometry(PickResult.java:502) at com.sun.j3d.utils.picking.PickResult.generateIntersections(PickResult.java:6 26) at com.sun.j3d.utils.picking.PickResult.numIntersections(PickResult.java:422) at com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(PickTool.java: 854) at com.sun.j3d.utils.picking.PickTool.pickGeomClosestIntersect(PickTool.java:91 5) at com.sun.j3d.utils.picking.PickTool.pickClosest(PickTool.java:566) at GraphicDisplay.mouseClicked(GraphicDisplay.java:593) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) any work around on this problem will greatly be appreciated, thanks, Isaac =========================================================================== 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".