Convert .STL files to OpenSCAD
Run:
python stl2scad.py my_3d_model.stl
to generate my_3d_model.scad
in the same directory.
Note: This script is written and tested to work with Python 3. Python 2 is not supported, though it could probably be made to work with some minor modifications.
This script originally came from thingiverse:64709 (which is a derivative of thingiverse:62666. I also applied the changes from thingiverse:850853 to make compatible with Python3.
I imported it to GitHub so I could more easily work on modifications.
It is licensed under the Creative Commons - Attribution - Share Alike license.