Show 3D object using the OFF format
Code: "canvas3D_engine3D.py". Programming language: Python DMelt Version 1. Last modified: 05/09/2015. License: Pro
https://datamelt.org/code/cache/canvas3D_engine3D_4102.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 *

dir=SystemDir+fSep+"macros"+fSep+"examples"+fSep+"data"+fSep
# all OFF files are located in /data directory
view=HEngine3D(dir+"teapot.off")
view.setBounds(10, 10, 600, 400)
view.setVisible(1)

You see the box below because you did not login.