The Python Oracle

Best tool to generate STL (3-D geometry file) algorithmically?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Sunrise at the Stream

--

Chapters
00:00 Question
01:02 Accepted answer (Score 4)
01:37 Thank you

--

Full question
https://stackoverflow.com/questions/2103...

Question links:
[STL is a file format that describes 3-D surface geometry]: https://en.wikipedia.org/wiki/STL_%28fil...

Accepted answer links:
[Blender]: http://www.blender.org/
[Python API]: http://www.blender.org/documentation/ble.../
[blender --python script.py]: http://www.blender.org/documentation/ble...
[STL import/export plugin]: http://wiki.blender.org/index.php/Extens...
[source code]: http://git.blender.org/gitweb/gitweb.cgi...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #3d #geometry #modeling #cad

#avk47



ACCEPTED ANSWER

Score 4


Have you considered using Blender?

It has a Python API, and can also be used in headless mode (without a GUI) by using blender --python script.py.

It also has an STL import/export plugin (make sure to enable it in Preferences -> Addons if you decide to try it). I'd also suggest to look at its source code if you decide to roll your own.