Yes It does help, I see that a new branchgroup needs to be created then the geometry required can be added to the new branchgroup and can then be replaced.
cheers KP --- David Bourgais <[EMAIL PROTECTED]> wrote: > 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". __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com =========================================================================== 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".
