C++ std to obj converter for Python
Project description
stl-to-obj
What is it?
It is powerful python tool to convert .stl file to .obj and .obj file to .stl using c++ in backend and built with cython for all platforms
Build pure c++
- Install CMake
- Then run
- Winows:
build.cmdand inbuild\Debugfolder you will find exe file - Linux/macOS:
sh build.shand you will find runnablestl2objinbuildfolder
- Winows:
- In terminal type
# Windows
stl2obj.exe <src> <dst>
# Linux/MacOS
./stl2obj <src> <dst>
- Enjoy fast conversion!
Installation
From pypi
pip install stl2obj
From GitHub directly
pip install https://github.com/Neizvestnyj/stl-to-obj/archive/master.zip
OR
if needed python setup.py clean --all
git clone https://github.com/Neizvestnyj/stl-to-obj.git
cd stl-to-obj-master
python setup.py install
Usage
from stl2obj import Stl2Obj
src = 'path-to-src-file' # may be stl or obj
dst = 'path-to-dst-file' # may be stl or obj
callback = lambda code: print(code)
Stl2Obj().convert(src, dst, callback)
Usage with python-for-android
Installation
pip install buildozer
buildozer.spec
requirements = kivy, stl2obj
p4a.local_recipes = <path-to-stl2obj-recipe-folder>
in console
buildozer android debug deploy run logcat
or just copy recipes to examples/kivy_example folder and run buildozer android debug deploy run logcat
Usage with kivy-ios
Installation
pip install git+https://github.com/kivy/kivy-ios.git
in console
toolchain build python3 kivy
toolchain build stl2obj --add-custom-recipe=recipes/ios/stl2obj
toolchain create Stl-to-obj examples/kivy_example
Authors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stl2obj-0.3.tar.gz.
File metadata
- Download URL: stl2obj-0.3.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c32ca0d88966f60e5b9f043e2d75fc02625eec9c8ee9c0a167b340266731ddf
|
|
| MD5 |
0841db48aa05292df6340db79fcea87a
|
|
| BLAKE2b-256 |
b8927d22dfbd77e46d0ae6746f49929368fe1aa772852957f55013e37e1d0ddf
|
File details
Details for the file stl2obj-0.3-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: stl2obj-0.3-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 97.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43b1dfd92e02a486b972a63283db0a9c349a1f1aa351e956b5eb3c268d38b4ba
|
|
| MD5 |
a1a382734a3b1670d451a15fe652a58c
|
|
| BLAKE2b-256 |
3c6d2062bbd82c1ddaf8c0e83e158ca8c5cdd9cb0d7755f64635e3ae69a845f4
|