How to load stl files into sage math
I want to work upon FEM in sage math, so i just want to import stl files and mesh it. Any help on how to start.
I want to work upon FEM in sage math, so i just want to import stl files and mesh it. Any help on how to start.
Maybe "NumPy-stl" is the right package to use: https://pypi.org/project/numpy-stl/, documentation here: https://numpy-stl.readthedocs.io/en/l.... I don't know exactly how anaconda works, but try to make sure that anaconda is activated and run pip install numpy-stl
. Test it by running Sage and seeing if
from stl import mesh
works.
(The package https://python-stl.readthedocs.io/en/... has not been updated recently — last in 2014. So probably not the right choice.)
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2021-07-06 12:45:09 +0100
Seen: 125 times
Last updated: Jul 07 '21
Welcome to Ask Sage! Thank you for your question!
Please describe your Sage installation. Did you install it yourself, or is it system-wide? I'm asking because if you installed it yourself, you should be able to install a package like Python STL (https://python-stl.readthedocs.io/en/...) and use that in Sage.
Hi John Thanks for the comment. I installed Sage myself in Linux on anaconda package manager. How to install the stl package on Python? Is there any documentation on how I can slice and mesh the object and display the mesh.