Janet Song wrote:
> Hi
>
> When i do rotation followed by translation with this code:
>
> iden = new Transform3D();
> rotAround = new Transform3D();
> transOut = new Transform3D();
>
> rotAround.setRotation(new Quat4d (Math.toRadians(aXAngle),Math.toRadians
>
>(aYAngle),Math.toRadians(aZAngle),0.0d));
> transOut.setTranslation(new Vector3d(xDist, yDist, zDist));
>
> it compiles ok but when i run it, it gives exception that the transformation is not
>congruent.
> then i tried putting an identity matrix b4 it
>
> iden2.setIdentity();
> rotate.setRotation(new Quat4d
>(Math.toRadians(dXAngle),Math.toRadians(dYAngle),Math.toRadians(dZAngle),0.0d));
> trans.setTranslation(new Vector3d(dxDist, dyDist, dzDist));
>
> but it still gives exception bad transformation.....
>
> why?
>
> Please help :-)
>
> bye
>
> ===========================================================================
> 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".
what have you used the transforms for ?
Hardy
===========================================================================
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".