hi,
Stefan Köhler found a strange behavior of the Transform3D.ortho(..)
function. included is some code which shows our problem: a Transform3D set
with the ortho(..) function is not affine, but after reset with (nearly) the
same values with the set(..) function it seems to be okay.
Is this a bug or something we got wrong? Thanks a lot, Marco.
code:
TransformGroup tg = new TransformGroup();
Transform3D t3d = new Transform3D();
float[] m = new float[16];
t3d.ortho(0.0, 10.0, 0.0, 10.0, -1.0, 1.0);
System.out.println(t3d.getBestType());
System.out.println(t3d);
try {
tg.setTransform(t3d);
}
catch(Exception e) {
System.out.println(e.getMessage()+"\n");
}
t3d.get(m);
t3d.set(m);
System.out.println(t3d.getBestType());
System.out.println(t3d);
try {
tg.setTransform(t3d);
}
catch(Exception e) {
System.out.println(e.getMessage()+"\n");
}
output:
0
0.2, 0.0, 0.0, -1.0
0.0, 0.2, 0.0, -1.0
0.0, 0.0, 1.0, 0.0
0.0, 0.0, 0.0, 1.0
TransformGroup: non-affine transform
128
0.20000000298023224, 0.0, 0.0, -1.0
0.0, 0.20000000298023224, 0.0, -1.0
0.0, 0.0, 1.0, 0.0
0.0, 0.0, 0.0, 1.0
===========================================================================
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".