from jv.geom import PgElementSet
from jhplot import HJavaView

obj = PgElementSet(3);
obj.setName("snail");
obj.computeSnail(40, 30, 2.0);
#obj.computeSphere(40, 10, 2.0);
obj.flipOrientation();
obj.makeVertexNormals();
obj.makeElementNormals();
obj.makeElementColorsFromZ();
obj.showElementColors(True);
obj.showElementBackColor(True);
obj.setTransparency(0.1);
obj.showTransparency(True);
obj.showSmoothElementColors(True);
obj.showSmoothLighting(True);


c1= HJavaView()
c1.draw(obj)
c1.visible()
