refreshing and altering the scene graph content...
i know my question may sound elementary, but it is not clearly addressed in the first four chapters of the tutorial (i need not read further for what i need java3d for) and everything i tried didn't seem to work...
i have a list of different house models, described by Room objects, each encapsulating its coordinates and dimensions. they are all supposed to be rectagle hexaedra.
what i want is with the selection of a Solution (comprising of a set of Room objects) in a Solution combobox, the previously rendered Solution in my canvas be cleared and the recently selected Solution be rendered.
what is the strategy to address that issue? i mean, since the scene has been compiled, which capabilities should i leave available and on which group node should i intervene in order to remove and then add my leaf nodes?
i am using a simple universe, and my scene graph is as follows.
(simple universei stuff)->(rootBranchGroup)->(siteTransformGroup)->(siteBranchGroup)->(set of LeafNode's)
i use the (siteTransformGroup) to add a Behavior to manipulate the site using the keyboard or mouse.