![]() |
![]() |
![]() |
![]() |
32 |
public BranchGroup createSceneGraph( )
{
BranchGroup objRoot = new BranchGroup( );
// Create the transform group node and
// enable transform write by behavior
TransformGroup objTrans = new TransformGroup( );
objTrans.setCapability( TransformGroup.ALLOW_TRANSFORM_WRITE );
objRoot.addChild( objTrans );
// Create a cube shape and add to scene
objTrans.addChild( new ColorCube( 0.4 ) );
. . .