ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 07 Jul 2021 14:48:26 +0200How to load stl files into sage mathhttps://ask.sagemath.org/question/57883/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.Tue, 06 Jul 2021 12:45:09 +0200https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/Comment by Krishna Sai for <p>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.</p>
https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?comment=57900#post-id-57900Hi 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.Wed, 07 Jul 2021 05:53:38 +0200https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?comment=57900#post-id-57900Comment by John Palmieri for <p>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.</p>
https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?comment=57893#post-id-57893Please 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/latest/) and use that in Sage.Tue, 06 Jul 2021 18:39:11 +0200https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?comment=57893#post-id-57893Comment by slelievre for <p>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.</p>
https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?comment=57888#post-id-57888Welcome to Ask Sage! Thank you for your question!Tue, 06 Jul 2021 15:47:37 +0200https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?comment=57888#post-id-57888Answer by John Palmieri for <p>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.</p>
https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?answer=57901#post-id-57901Maybe "NumPy-stl" is the right package to use: https://pypi.org/project/numpy-stl/, documentation here: https://numpy-stl.readthedocs.io/en/latest/. 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/latest/ has not been updated recently — last in 2014. So probably not the right choice.)Wed, 07 Jul 2021 06:45:11 +0200https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?answer=57901#post-id-57901Comment by Krishna Sai for <p>Maybe "NumPy-stl" is the right package to use: <a href="https://pypi.org/project/numpy-stl/">https://pypi.org/project/numpy-stl/</a>, documentation here: <a href="https://numpy-stl.readthedocs.io/en/latest/">https://numpy-stl.readthedocs.io/en/l...</a>. I don't know exactly how anaconda works, but try to make sure that anaconda is activated and run <code>pip install numpy-stl</code>. Test it by running Sage and seeing if</p>
<pre><code>from stl import mesh
</code></pre>
<p>works.</p>
<p>(The package <a href="https://python-stl.readthedocs.io/en/latest/">https://python-stl.readthedocs.io/en/...</a> has not been updated recently — last in 2014. So probably not the right choice.)</p>
https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?comment=57907#post-id-57907Thank You.Wed, 07 Jul 2021 14:48:26 +0200https://ask.sagemath.org/question/57883/how-to-load-stl-files-into-sage-math/?comment=57907#post-id-57907