 |
Show 3D snail using JavaView project
Source code name: "javaview_snail.py"
Programming language: Python
Topic: Graphics/3D
DMelt Version 2.5. Last modified: 06/21/1974. License: Pro
https://datamelt.org/code/cache/javaview_snail_1571.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
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()
You see the box below because you did not login.