|
Add your cone to a TransformGroup, set the
capabilities of the TransformGroup
tg.setCabability(TransformGroup.ALLOW_TRANSFORM_WRITE);
And then, when the branchgroup becomes live, you
can use something like:
Transform3D t=new Transform3D();
tg.getTransform(t);
t.setScale(....float...);
tg.setTransform(t);
Cristian
<<Hi, dear all:
Is there any way to change the size of a Cone object in a live scene without using detaching/retaching BranchGroup? I mean like using Geometry By Reference, you can change vertex corrdinates on fly without adding the object under a BranchGroup, here I want to change the height and radius of the cone. I would like to confirm this conclusion. So that I will start another approach to model my objects. Thanks much in advance!>> |
- [JAVA3D] Change j3d primitive size on fly - possible? Lan Wu-Cavener
- Re: [JAVA3D] Change j3d primitive size on fly - possib... Cristian Tota
- Re: [JAVA3D] Change j3d primitive size on fly - po... Lan Wu-Cavener
- Re: [JAVA3D] Change j3d primitive size on fly ... Cristian Tota
- Re: [JAVA3D] Change j3d primitive size on fly ... Daniel Selman
