Claude, You will want to look at the Picking utilities in J3D. There is some information about this in the tutorial, and some decent documentation in the Javadocs.
You can perform a pick at the mouse point, then use a PickResult to get more information, including the nearest vertex (using PickIntersection). For the actual modification of the geometry, you will need to transform the point into the virtual world from the canvas, and then modify the geometry to the new point. Note that this is tricky since the virtual world is in 3 dimensions and the AWT world is in 2 dimensions, so calculating that third dimension could be difficult for you and the final user. I recommend looking at the ViewInfo class to get better matrix information from the scene, or use behaviors to ensure that you are one frame behind the rendering. ViewInfo is still not in the Javadocs I believe, but you can generate them yourself from the CVS. -mike -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] On Behalf Of Claude Fuhrer Sent: Tuesday, August 03, 2004 3:58 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Picking points from a QuadArray Le Mardi, 3 Août 2004 10.35, Claude Fuhrer a écrit : > Hi all ! > > I've a simple application which displays a simple QuadArray. I have used > three behaviors (MouseRotate, MouseZoom and MouseTranslate) to modify the > view of this QuadArray. > > Now, i'm trying to pick some vertices of this QuadArray with the mouse, to > be able to change their position. But I'm unable to receive the mouse > events generated. I've written a MouseListener class, added it to my main > object, but the mouseClicked method is never called. What's wrong ? Perheaps I should add the mouseListener to the right component (e.g. the the Canvas3D) ;-) sorry for the noise ! > Or, > perheaps better asked, what would be the best method to modify the shape of > a QuadArray with the mouse ? this question is still not resolved for me ! > > Thank you for your help > > claude > > =========================================================================== > 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".