Excuse me if I wasn�t clear but I hope this explains:

I draw several nodes with PointArray() class and structural elements with
LineArray() class, I want that when the mouse is moving around any part of the line
or point elements it identifies the corresponding coordinates, for this I�ve
assigned a Behavior
wakeupOn (new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED)); for each line with mode
pickCanvas.setMode(PickCanvas. GEOMETRY_INTERSECT_INFO) but is very slow detecting
the mouse moving. I know that with pickCanvas.setMode(PickCanvas.BOUNDS) is better
but it throws the attached Exception.

To solve this Exception in PointArray() I assign a TransformGroup for each new
Point. But how can I solve this problem for the LineArray()?

Thanks for your time,

Carlos.

John Wright escribi�:

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

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