May-09-2024, 05:32 PM
stl is a package
mesh is a sub-package of stl.
mesh.Mesh is probably a class. You can find out by asking Python. I'm not going to install stl just for this, so I'll use tkinter.ttk as an example.
mesh is a sub-package of stl.
mesh.Mesh is probably a class. You can find out by asking Python. I'm not going to install stl just for this, so I'll use tkinter.ttk as an example.
Output:>python
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from tkinter import ttk
>>> ttk
<module 'tkinter.ttk' from 'C:\\Program Files\\Python310\\lib\\tkinter\\ttk.py'>
>>> ttk.Checkbutton
<class 'tkinter.ttk.Checkbutton'>
for stl.mess, start up the python interpreter and mport mesh from stl and ask python wht "mesh" is.Output:>>> from stl import mesh
>>>mesh
You could even ask for help.>>>help(mesh)Do the same thing to learn more about Mesh.
Output:>>>mesh.Mesh
...
help(mesh.Mesh)