private Node createTube(String name, float outerRadius, float innerRadius,
float thickness, ColorRGBA color) {
// Create the disc with the name, radii, and thickness given. Set
// the color of the tube.
Tube t = new Tube(name, outerRadius, innerRadius, thickness, 50, 50);
t.setSolidColor(color);
// Create the main node and set the material state on the node so the
// color shows up. Attach the tube to the node.
Node n = new Node();
RenderManager rm = ClientContextJME.getWorldManager().getRenderManager();
MaterialState matState3 = (MaterialState)
rm.createRendererState(RenderState.StateType.Material);
matState3.setDiffuse(color);
n.setRenderState(matState3);
n.attachChild(t);
// Set the bound on the tube and update it
t.setModelBound(new BoundingSphere());
t.updateModelBound();
return n;
}