Thanks for your answer Darren ..
I tried to find in the docs about pickCanvas but nothing !!
Think, I don't have the adresses of all the docs and the examples ?
Thanks again for any help
Firas
darren cosker wrote:
> Hi
> You have to initialise a pick canvas object and reference it to the canvas3D
> and the locale (or branch group) in your scene graph.
> Then use pick result to get pick intersection information
> from this you can get any information from the screen
>
> If i remember this is the code- think it may be a little bit wrong- check
> the j3d docs.
>
> PickCanvas pickCanvas = new PickCanvas(canvas3D,locale);
> pickCanvas.setTolerance(0.5f);
> pickCanvas.setMode(????) - cant remember exact code- look in j3d docs
>
> PickResult[] pickRes = new PickResult(--think pickCanvas goes here
> PickIntersection pi = pickResult[0]; ??
>
> then use pi to get the information you want - again look at the method
> descriptors for the PickIntersection class.
> Apologies if this code is a little unclear - i cant remember the exact code
> - i'll post it later on.
>
> But with the pi object you can enquire - a point picked on a shape - the
> vertices making up the face of a shape picked - a GeometryArray object from
> a shape - etc
>
> Darren
>
> >From: Firas MOHAMED <[EMAIL PROTECTED]>
> >Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: [JAVA3D] Getting points from the screen
> >Date: Wed, 11 Apr 2001 15:08:35 +0200
> >
> >Hi All!
> >I sent this email yesterday, but i did not appear ...!
> >
> >I need to know how to get the coordinates of a point where I click with
> >the
> >mouse
> >once my 3d shapes are displayed ...?
> >
> >Thanks for any help
> >
> >Firas
> >
> >===========================================================================
> >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".
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> ===========================================================================
> 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".