Thanks Kevin for the response.

I'm using the PickCanvas utility for picking(pls see the code attached in
the other mail). Problem is that we want to set the shape of the Ray as the
Cylinder using

setShapeCylinderRay(origin, direction, radius)

in this method what should be the correct value of the parameters is not
known to me.

Can you please have a look at the code and tell me the mistake or changes I
need to do.

Thanks,
nitin

> -----Original Message-----
> From: Kevin Glass [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 3:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] problem in picking
>
>
> I guess this isn't really a solution to your problem, but what you're
> trying to achieve could be done more easily if you use the PickCanvas
> utility class. It does this exact type of picking.
>
> HTH
>
> Kev
>
> Nitin.Jain wrote:
>
> >Hi,
> >
> >I have a point array in my view. I want to have a pick
> utility which picks
> >one of these points, even if it is not clicked very near to
> the point. I'm
> >creating a Cylindrical PickRay for that with the required radius.
> >
> >The Pick works fine in the initial view but when I rotate
> the view it does
> >not pick the point properly. I'm doing a
> >
> >getPixelLocationInImagePlate( x,  y, p3d) to get the point
> corresponding to
> >the mouise click, then I'm transforming the point with the
> transform of
> >
> >getImagePlateToVworld(Tranform3d) and setting this point as
> the origin of
> >the ray and the direction is taken as the opposite of the
> 'z' parameter of
> >this point(I think this is the place where I'm screwing this up)
> >
> >I'm sending you a test program, I would appreciate if you
> can execute the
> >code and point out the mistake I'm doing.
> >
> >Regards,
> >
> >Nitin Jain
> >
> >=============================================================
> ==============
> >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