Rong,

Sounds like a good idea. I think I can construct a Bounds object of BoundingPolytope 
by 5 planes, which can be used to define a PickBound.

Then, I'll create an instance of PickTool and set its pickShape to the
PickBounds created above. (I guess we can't set a random pickShape used by
PickCanvas. From its source code, it only uses PickRay, PickCylinderRay
and PickConeRay in different situations).

I'll try it later, hope it works. Thanks a lot----white

>Hi,
>
>Try the following step
>1. After you get the four points corresponded the mouse drag,
>    build  a cubic bound using the code for class PickObject for the pick
>aperture in SUN j3d Picking utility package.
>2. create  a instance of PickCanvas, and set the pickShape to the bound
>which you created in the step 1
>3.  call the pickAll( ) in the PickCanvas to get all intersected shape3Ds.
>
>Hope this help
>
>Good luck
>
>Rong
>
> ==========================================================================
>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