Dear all,

The core class RotPosScalePathInterpolator does not support non-uniform
interpolation. The RotPosScaleTCBSplinePathInterpolator or
KBRotPosScaleSplinePathInterpolator  classes in the Utility pack do not support
such function too. I have checked the souce code of the above classes. Here is what
they said:

            // TODO: Vijay - Handle Non-Uniform scale
            // Currently this interpolator does not handle non uniform scale
            // We cheat by just taking the x scale component

           // Scale the transformation matrix
     sMat.set((double)iScale.x);
     tMat.mul(sMat);

     // Set the translation components.
     tMat.m03 = iPos.x;
     tMat.m13 = iPos.y;
     tMat.m23 = iPos.z;
     rotation.set(tMat);

My question is if I replace the  sMat.set((double)iScale.x) with
rotation.setScale(iScale), (that means that the Transform3D contains a non-form
information), then the class will support the non-uniform scale onterpolation. I
doubt if it is so simple.

Could someone or the author of these Util classes give me a clue? Are there other
options?

Thanks

liming

===========================================================================
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