Hi

Here's my solution :

/*In this exemple, We'll suppress an Axis and re-attach it from a
BranchGroup*/
/*scene is your BranchGroup*/
/*This part of code in your function where you display your scene*/
scene.setCapability(scene.ALLOW_CHILDREN_READ);
scene.setCapability(scene.ALLOW_CHILDREN_WRITE);
scene.setCapability(scene.ALLOW_CHILDREN_EXTEND);

sup = new BranchGroup();
sup.setCapability(sup.ALLOW_DETACH);
sup.setCapability(sup.ALLOW_CHILDREN_READ);
sup.setCapability(sup.ALLOW_CHILDREN_WRITE);
sup.setCapability(sup.ALLOW_CHILDREN_EXTEND);
Axis axe = new org.j3d.geom.Axis();
sup.addChild(axe);
scene.addChild(sup);

/*Now, this, to detach the Axis*/
sup.detach();

/*And this to re-attach the Axis*/
BranchGroup a = new BranchGroup();
axe = new org.j3d.geom.Axis();
a.addChild(axe);
sup.addChild(a);
scene.addChild(sup);

I hope it would help you.

Bye.

David

===========================================================================
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