Carlos,
You need to set the capability bits for picking by geometry on your
Shape3Ds. Like:
PickTool.setCapabilities(myShape, PickTool.INTERSECT_COORD);
- John Wright
Starfire Research
Carlos Fernando Ariza Moreno wrote:
>
> Thanks to Anand for the previous answer.
>
> I�m completing the question.
> I want whit the mouse identify the coordinate of the element (LineArray) assign as
> the IntersectTest.java example whit pickCanvas.setMode(PickCanvas.BOUNDS).
> But:
> Exception occurred during Behavior execution:
> java.lang.NullPointer Exception............
>
> No problem Whit pickCanvas.setMode(PickCanvas. GEOMETRY_INTERSECT_INFO).
>
> Any hints? Thanks in advance.
>
> Anand Pillai escribi�:
>
> > Hi Carlos,
> >
> > I think this is the way to do it.
> > // tg is your TransformGroup and assuming you added
> > // the two point arrays at index 0 and 1.
> >
> > TransformGroup tg;
> >
> > Shape3D pnt1 = (Shape3D) tg.getChild(0);
> > Shape3D pnt2 = (Shape3D) tg.getChild(1);
> >
> > PointArray pa1 = (PointArray) pnt1.getGeomtry();
> > PointArray pa2 = (PointArray) pnt2.getGeometry();
> >
> > Regds,
> >
> > Anand
> >
> > Carlos Ariza <[EMAIL PROTECTED]> on 06/21/2001 09:26:52 PM
> >
> > Please respond to Discussion list for Java 3D API <[EMAIL PROTECTED]>
> >
> > To: [EMAIL PROTECTED]
> > cc: (bcc: Anand PILLAI/dassault-systemes)
> > Subject: [JAVA3D] LineArray
> >
> > Hi all:
> >
> > How may I assign LineArray from two PointArray previously assign
> > to the TransformGroup?.
> >
> > Any hints? Thanks in advance.
> >
> > ===========================================================================
> > 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".
> >
> > ===========================================================================
> > 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".
>
> ===========================================================================
> 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".
===========================================================================
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".