Hi there,
I am wroking on project to write the scenegraph to disk but ( You can guess
it) I'am having a problem right here. The filestructure i write to is the
VRML format. I write geometry and appearance of a shape3d to disk but when
I try to write a transform3d I get stuck. The problem is that i can only
get the transformation-matrix. Now is my question: How do I extract the
scale, translation and rotation vector from this matrix?
this is what I get with the Transform3d.get(Matrix4d) method :
[[ m00 m01 m02 m03 ]
[ m10 m11 m12 m13 ]
[ m20 m21 m22 m23 ]
[ m30 m31 m32 m33 ]
and this is what I want to obtain:
Vector3d trans // (t1,t2,t3)
Vector3d scale // (s1,s2,s3)
Vector3d rotate // (r1,r2,r3)
double rotangle // rotationangle
Any help is welcome. If you got a code snippet please help me.
Thanks a lot!
mailto:[EMAIL PROTECTED]
===========================================================================
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".