Dear all:

this is my code for creating a Cone,


Cone cone = new Cone(coneRadius, coneHeight,
Cone.ENABLE_GEOMETRY_PICKING|Cone.GENERATE_NORMALS|Cone.ENABLE_APPEARANCE_MO
DIFY|, appearance);

enumKids(cone);
cone.setUserData((Object) p);
enumKids(coneTGB)
coneTGB.addChild(cone);
return coneTGB;

my question is should i do

cone.setCapability(Primitive.ENABLE_GEOMETRY_PICKING);

cone.setCapability(Shape3D.ALLOW_GEOMETRY_READ);

cone.setCapability(Geometry.ALLOW_INTERSECT);

i may sound stupid, but i am really confused on this thing.



this is the error that i am getting,

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.storeGeometr(PickResult.java:502)
at com.sun.j3d.utils.picking.PickResult.generateIntersection(PickResult.java


thanks for any help,



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".

Reply via email to