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 using c++ in backend and built with cython for all platforms
Build pure c++
- Install CMake
- Then run
- Winows:
build.cmd
and inbuild\Debug
folder you will find exe file - Linux/macOS:
sh build.sh
and you will find runnablestl2obj
inbuild
folder
- 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
stl = 'path-to-stl-file'
obj = 'path-to-obj-file'
callback = lambda code: print(code)
Stl2Obj().convert(stl, obj, 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
stl2obj-0.1.tar.gz
(60.8 kB
view hashes)