Dome Problem - noob topic

I tried inserting this code into the simpleInitApp method



Dome myDome = new Dome(Vector3f.ZERO,2,32,128f,false);

//Box myDome = new Box(Vector3f.ZERO,1,1,1f);

Spatial S = new Geometry(“Dome”,myDome);

Material m = new Material(assetManager,“Common/MatDefs/Misc/Unshaded.j3md”);

m.setColor(“Color”, ColorRGBA.Blue);

S.setMaterial(m);

rootNode.attachChild(S);



While it works for the box, the dome doesn’t cooperate. Even when i turn the boolean value to true. There’s no other code so I don’t understand what’s the problem.