Dear all: please look carefully at this mail. i know there is a shape3D involved, but i dont know which vintage it really occurs. the code in my mouseClicked(MouseEvent e) shows hows i try to get the cone. the error that it throws is shown below:
i create a cone and set all the Capabilities for it like ; // create the cone and add it to the coneTG Cone cone = new Cone(coneRadius, coneHeight, Cone.ENABLE_GEOMETRY_PICKING|Cone.GENERATE_NORMALS|Cone.ENABLE_APPEARANCE_MO DIFY, appearance); cone.setCapability(Geometry.ALLOW_INTERSECT); cone.setCapability(Shape3D.ALLOW_GEOMETRY_READ); cone.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE); then when the mouse is clicked, i have this code below: 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 keep getting this same error , but i am wondering what i am really doing wrong, what should i do to avoid this error ? the error is shown below: thanks, Isaac ERROR 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.ja va:626)at com.sun.j3d.utils.picking.PickResult.numIntersections(PickResult.java:42 2)at com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(PickTool.java: 854)at com.sun.j3d.utils.picking.PickTool.pickGeomClosestIntersec(PickTool.jav a:915)at com.sun.j3d.utils.picking.PickTool.pickClosest(PickTool.java:566) at GraphicDisplay.mouseClicked(GraphicDisplay.java:608) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) =========================================================================== 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".