The "current" geometry is just a weighted average of the vertex positions of the input geometries - so if there are n geometries in the morph, each with m vertices, vertex i of the net geometry would be do i=1,m vnet(i) = w1*v1(i) + w2*v2(i) + ... + wn*vn(i) enddo Where w1 thru wn are the weights at the given moment, which must sum to 1.0 (i.e. w1 + w2 + ... + wn = 1.0)
So, if you have the specified geometries and the weights, you can get the Point3ds at the vertices and do the sum yourself to get the net geometry. Hope this helps, Matt -----Original Message----- From: geoffrey butterworth [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 7:43 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Morphing geometry hi. yes it looks like you need the algorythm. i have no idea how complicated that is. i cant remember if i have seen one some where or not in the past, if i have i forgot were it was. sorry cant help. ----- Original Message ----- From: "Kristian Nilssen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 22, 2004 1:14 PM Subject: Re: [JAVA3D] Morphing geometry > I input, say, 2 sets of geometry. I would like to extract the morphed > geometry (which I don't have) which would be the result of applying > weights of , say, 0.2 and 0.8 > > There does not seem to be a way of getting at this geometry, only the > geometry which you input. (seems a bit pointless). This is fine if you > just want to view the geometry via a scene graph but not when you want > the actual resultant geometry. Perhaps there is a way of getting the > geometry at arbitrary points in a scene graph? > > rgds, > Kristian. > > geoffrey butterworth wrote: > > >well who would have thought that. > >do you mean you want ALL the geometry at any giving moment in time? > >or ALL the geometry ALL the time > > > >----- Original Message ----- > >From: "Kristian Nilssen" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Friday, October 22, 2004 7:56 AM > >Subject: Re: [JAVA3D] Morphing geometry > > > > > > > > > >>don't think so. > >> > >>geoffrey butterworth wrote: > >> > >> > >> > >>>hi . i havent messed with morph yet. but maybe they are all in > >>>getGeometryArray(); > >>> > >>>geoff. > >>> > >>>----- Original Message ----- > >>>From: "Kristian Nilssen" <[EMAIL PROTECTED]> > >>>To: <[EMAIL PROTECTED]> > >>>Sent: Thursday, October 21, 2004 12:15 PM > >>>Subject: [JAVA3D] Morphing geometry > >>> > >>> > >>> > >>> > >>> > >>> > >>>>I'd like to use the Morph class to morph between two sets of > >>>>geometry. However, I can't see any way of extracting the morphed > >>>>geometry out of the Morph object. If this is not possible, is > >>>>there another, freely available, morphing library I can use, or is > >>>>the morphing algorithm simple enough to implement quickly? > >>>> > >>>>thanks, > >>>>Kristian. > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>====================================================================== >>==== = > >> > >> > >>> > >>> > >>>>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". > >> > >> > >> > > > >======================================================================= >==== > >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". =========================================================================== 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".