Hi, A while ago I ran into the same problem. I did it using the PickBounds and BoundingPolytope classes. There are two cases:
a) in case of a perspective view use a rectangular cone starting at the eye position in the image plate and extending to the back clipping plane. b) in case of a parallel view use a rectangular prism extending between the front and the back clipping planes. Regards. --- Luis ----- Original Message ----- From: "Asaf Dafner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 14, 2002 7:05 AM Subject: [JAVA3D] Picking: Select By Area (mouse-rectangle drag) > In his Raw J3D, chapter 6, ( > http://www.j3d.org/tutorials/raw_j3d/chapter6/picking.html ), Sir Couch > comments that it is possible to use PickBounds to implement "drag area > selection techniques that drawing applications are fond of". > > I want to do that, but I'm having trouble defining a bounding shape that > will encompass everything that the user sees as "in the rectangle" he > just dragged across his 2D screen. > > Has anyone implemented this and is willing share some tips, eye-openers > and (there I write) code snippets (java-snipplets?). > > Thanx, > Asaf. > > > > -- > > ------------------------------------------------- > Asaf Dafner Short -but- Deep, Mainly Deep. > > Frontline PCB Solutions > > Phone : (972) 8-9322183 Ext. 148 > Fax : (972) 8-9322186 > email : [EMAIL PROTECTED] > > > > Je n'ai fait celle-ci plus longue que parce que > je n'ai pas eu le loisir de la faire plus courte. > - Blaise Pascal > > =========================================================================== > 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".
