Nitin,

I'm sorry, I've managed to delete the mail, so I don't have your source.

However, what exactly are you trying to achieve? If you're using PickCanvas to pick an object from a position clicked on the screen you don't need to set up the shape of the ray. If you wanted to enlarge the size of the cylinder used to pick you can use the setTolerance() method.

Earlier in the mail you said you were doing a set of things to convert the place clicked onto the screen into a 3d point to do your pick. If you're using PickCanvas you don't need to do this either.

Kev

Nitin.Jain wrote:
759BC7ED1B0BD6118BC400B0D0E16A1F80280B@BHILLS3NT002">
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