Giter Club home page Giter Club logo

svg2gcode-4's Introduction

Build Status

svg2gcode

svg2gcode reads an SVG file and produces g-code machining operations from the paths in it.

Supported operations are:

  • engraving (follow the path from the SVG)

  • offset (follow a path offset inwards or outwards from the SVG path)

  • pocket (clear the interior of the path from the SVG)

  • drill (in the center of circular paths)

Features:

  • ramp or plunge entry moves

  • optionally add work-holding tabs

  • primitive nesting via duplication on an XY grid

Example generated tool path

Example generated tool path

Cut part

Installation

Clone the svg2gcode repo:

git clone https://github.com/SebKuzminsky/svg2gcode.git
git submodule init
git submodule update

Install dependencies:

sudo apt-get install python3 python3-svgwrite python3-numpy python3-jsonschema asciidoc docbook-xml docbook-xsl xsltproc make

The test suite runs the LinuxCNC Standalone Interpreter to validate the emitted g-code, this is available in the linuxcnc-uspace package from the linuxcnc.org deb archive.

Add the GPG key that validates the linuxcnc.org deb archive:

sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 3cb9fd148f374fef

Add the apt source for the linuxcnc.org deb archive:

deb http://linuxcnc.org stretch base 2.7-uspace

Install the linuxcnc-uspace package:

sudo apt-get install linuxcnc-uspace

Build the manpage:

make

Run the test suite:

cd test; ./runtests

G-Coder Python module

This repo also contains a python module named gcoder that writes g-code.

It is intended to be called from a program that has an idea of some cuts it wants to make. Gcoder functions write g-code to an output file. Some Gcoder functions correspond directly to specific g-codes, and some to more complex operations consisting of longer sequences of g-codes.

svg2gcode-4's People

Contributors

sebkuzminsky avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.