Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

transform group help.

843799Oct 27 2002 — edited Oct 29 2002
for example:
transform3D t = new transform3D();
t.setTranlation(new Vector3d(1,2,3));
t.setRotation(....)
t.setScale(...);
.
.
TranformGroup tg = new TranformGroup();
tg.addChild(myGeometry);
tg.setTransform(t);
using the above code, i find myGeometry is rorating according to the point (1,2,3)
but actually i want this geometry to rotate according to the point (2,4,6). and for this case i dun want to change the tranform3D t, because i still need that geometry positioned at(1,2,3). ofcoz, i also dont want to do setTransform twice, because the setTransform will have effect on the screen.

how can I do it?
Tahnks very much. It is very urgent for me.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2002
Added on Oct 27 2002
4 comments
53 views