I have some problems when trying to pick by geometry a
loaded VRML model.I guess the solution was simple as
set the capability bit in all geometries inside the
loaded shape3D's  :

shape3D.getGeometry().setCapability(Geometry.ALLOW_INTERSECT);

I was hurry so I just change pick mode to pick bounds
to solve it.

But in your case seens the capability bits
Shape3D.ALLOW_GEOMETRY_READ
and
Shape3D.ALLOW_GEOMETRY_WRITE
are not set in the shape you are trying to pick.

Alessandro

 --- Leandro L Dihl <[EMAIL PROTECTED]> escreveu: >
Hi!
>
> I trying to get a Shape3D, with
> mouseClicked(MouseEvent e), but when I click on
> any object in my universe this error happens.
> I try setting this capabilitys, but didn't solve
> this problem.
>
> BranchGroup.ALLOW_BOUNDS_READ
> BranchGroup.ALLOW_CHILDREN_READ
> BranchGroup.ALLOW_CHILDREN_WRITE
>
> TransformGroup.ALLOW_TRANSFORM_WRITE
> TransformGroup.ALLOW_TRANSFORM_READ
> TransformGroup.ALLOW_CHILDREN_READ
> TransformGroup.ALLOW_CHILDREN_WRITE
>
> and all Shape3D setCapabilitys...
>
>
> 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:505)
>         at
>
com.sun.j3d.utils.picking.PickResult.generateIntersections(PickResult.java:629)
>         at
>
com.sun.j3d.utils.picking.PickResult.numIntersections(PickResult.java:425)
>         at
>
com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(PickTool.java:854)
>         at
>
com.sun.j3d.utils.picking.PickTool.pickGeomClosestIntersect(PickTool.java:915)
>         at
>
com.sun.j3d.utils.picking.PickTool.pickClosest(PickTool.java:566)
>         at
> AITEMSalaGen.mouseClicked(AITEMSalaGen.java:415)
>         at
>
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
>         at
>
java.awt.Component.processMouseEvent(Component.java:5103)
>         at
> java.awt.Component.processEvent(Component.java:4897)
>         at
>
java.awt.Component.dispatchEventImpl(Component.java:3615)
>         at
>
java.awt.Component.dispatchEvent(Component.java:3477)
>         at
>
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
>         at
>
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
>         at
>
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
>         at
>
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
>         at
>
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
>         at
>
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
>
>
> *************************************
> *      Leandro Lorenzett Dihl       *
> * HOME - www.urisan.tche.br/~ldihl  *
> *   EMAIL - [EMAIL PROTECTED]    *
> * COMPUTER SCIENCE - URI University *
> *     Santo Ângelo - RS - Brazil    *
> *************************************
>
>
> -------------------------------------------------
> URI - Campus de Santo Angelo-RS
> http://www.urisan.tche.br
>
>
===========================================================================
> 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".

______________________________________________________________________

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html

===========================================================================
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