482

Creating backgrounds
Background geometry example code

  • Create background geometry
    BranchGroup myBranch = createBackground( );

  • Create a background
    Background myBack = new Background( );
    myBack.setGeometry( myBranch );

  • Set the application bounds
    BoundingSphere myBounds = new BoundingSphere(
        new Point3d( ), 1000.0 );
    myBack.setApplicationBounds( myBounds );