项目作者: koppi

项目描述 :
Convert STL files to G-Code for CNC milling
高级语言: C++
项目地址: git://github.com/koppi/stl2ngc.git
创建时间: 2016-04-14T18:06:38Z
项目社区:https://github.com/koppi/stl2ngc

开源协议:GNU General Public License v3.0

下载


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

  1. git clone https://github.com/aewallin/opencamlib
  2. cd opencamlib
  3. mkdir build
  4. cd build
  5. cmake .. -D CXX_LIB="ON"
  6. make . # try make -j4 for a faster build if you have a multi-core machine
  7. make install .

or use a prebuilt release:

  1. cd Downloads/
  2. wget https://github.com/aewallin/opencamlib/releases/download/2023.01.11/linux-cxx-x86_64.zip
  3. unzip linux-cxx-x86_64.zip && sudo cp -rpv prebuilds/linux-cxx-x86_64/* /usr

and as root (su -):

  1. echo '/usr/lib/opencamlib' > /etc/ld.so.conf.d/opencamlib.conf
  2. ldconfig

Next, checkout stl2ngc from git and run make and sudo make install:

  1. git clone https://github.com/koppi/stl2ngc && cd stl2ngc
  2. make
  3. sudo make install

To convert example.stl to example.ngc run:

  1. 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