3D object using OFF format and some methods
Source code name: "canvas3D_engine3Dmethods.py"
Programming language: Python
Topic: Graphics/3D
DMelt Version 1. Last modified: 03/03/2021. License: Pro
https://datamelt.org/code/cache/canvas3D_engine3Dmethods_7305.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 jhpro.engine3d import *
from java.awt import Color
from jhplot import *


# download OFF file from the web
http="https://datamelt.org/examples/data/"
print Web.get(http+"sphere_n3.off")
view=HEngine3D("sphere_n3.off")
view.setBounds(10, 10, 600, 500)
view.setVisible(1)

"""
# methods to display views
view=c1.getView()
view.rotatePause()

# methods to display objects
obj=c1.getObject3D()
obj.setTransperancy(255) # no transparancy
obj.setPenColor(Color.red)
c1.setBounds(10, 10, 500, 500)
c1.setVisible(1)
"""





You see the box below because you did not login.