I needed this functionality. What I did was assign each shape a
centerpoint. When the user holds the control key and picks 4 shapes (in
clockwise or counter-clockwise order), I find all the points in my list that
fall inside the 3-D box created by the 4 shapes. I go further to accept
boxes that don't align with any axes. If you want more details, I will post
some.
I'd really like to know how to draw a rubber band effect on the screen.
Daniel Dvorak
> -----Original Message-----
> From: Robert McLaughlin [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, April 07, 2000 10:31 AM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Picking multiple shapes using mouse
>
> Does anyone know how I can select a rectangle on the
> Canvas3D, and generate the appropriate PickBounds to
> pick everything in the rectangle.
>
> I am writing an application where the user needs to be
> able to select a group of Shape3D objects
> (e.g. to delete them or highlight them).
>
> I would like them to be able to drag out a rectangle
> on the Canvas3D, and have everything that appears in
> the rectangle picked, in the same way as you can drag
> and select a region in any standard paint program.
>
> So far, I have been able to let the user point and click
> on individual shapes, using a PickCanvas.
>
> How do I select a region on the Canvas3D.
>
> thanks
>
> Robert
> --
>
>
> Robert McLaughlin
> Medical Vision Lab
> Department of Engineering Science
> University of Oxford
>
> ==========================================================================
> =
> 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".