Chet Urata wrote:

Nikolai,

        It seems your test code shows an issue with the set() method of Transform3D
rather than an issue with normalizeCP().  According to the javadoc for
Transform3D, set() doesn't copy the scale:

        public final void set(Transform3D t1)
                Sets the matrix, type, and state of this transform to the matrix, type,
and state of transform t1.

I checked it with JBuilder, and it does indeed do only what's advertised.

You are wrong: "Sets the matrix" means setting all the values in the matrix, which includes the scale.

The problem is not only with Transform3D.set(Transform3D), same problem
with:

Transform3D.set(double[])
Transform3D.set(Matrix4d)


I don't know if normalizeCP() does all of what it's supposed to do, but it
appears not to change the scale, as the javadoc claims and your code shows.

"it appears not to change the scale", it switches the scale values, I call that changing the scale.

Try removing the normalizeCP() method from my testProgram, and you'll
observe the error also will be gone!

Regards
Nikolai



----------------------------------------------
Nikolai V. Christensen, Computer Engineer,
Simulation and Training department
IFAD, Forskerparken 10A, DK-5230 Odense M
Denmark, EU
Phone: +45 63 15 71 31  Fax: +45 65 93 29 99
WWWeb: http://www.ifad.dk
e-mail: [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".

Reply via email to