Stl2ngc
Convert STL to G-code for CNC milling
Install / Use
/learn @koppi/Stl2ngcREADME
stl2ngc
The stl2ngc program converts an STL file to LinuxCNC compatible G-code.
Clone, build, install and run
First, install OpenCAMLib, see: https://github.com/aewallin/opencamlib#building-for-c
git clone https://github.com/aewallin/opencamlib
cd opencamlib
mkdir build
cd build
cmake .. -D CXX_LIB="ON"
make . # try make -j4 for a faster build if you have a multi-core machine
make install .
or use a prebuilt release:
cd Downloads/
wget https://github.com/aewallin/opencamlib/releases/download/2023.01.11/linux-cxx-x86_64.zip
unzip linux-cxx-x86_64.zip && sudo cp -rpv prebuilds/linux-cxx-x86_64/* /usr
and as root (su -):
echo '/usr/lib/opencamlib' > /etc/ld.so.conf.d/opencamlib.conf
ldconfig
Next, checkout stl2ngc from git and run make and sudo make install:
git clone https://github.com/koppi/stl2ngc && cd stl2ngc
make
sudo make install
To convert example.stl to example.ngc run:
cat example.stl | stl2ngc > example.ngc
Demo
See Wiki.
FAQ
-
This is an early release, expect errors and missing features.
Please fork the repo.
-
No Gui? - Yes, only command-line for now.
Author
- Jakob Flierl - koppi
Related Skills
node-connect
341.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.5kCommit, push, and open a PR
