Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

removing and adding objects to simple universe [j3d]  RSS feed

 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am creating an instance of com.sun.j3d.utils.geometry.Box and then I am adding it, so that it could be displayed:



Now, I want to replace box with another one. How can I do it?
 
August Lammersdorf
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, only a BranchGroup can be added to or removed from a live and/or compiled Java 3D scene graph and if corresponding capability bits are set. Wrapping a Node with a BranchGroup allows to add and remove arbitrary Nodes, e.g. TransformGroup and Shape3D.

See javadoc of Group and BranchGroup. August, InteractiveMesh
 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for Your help!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!