Giter Club home page Giter Club logo

oval-kerf's Introduction

oval-kerf

A tool to redraw SVGs to compensate for the oval shape of diode laser cutters

There is a video explaining how this works and how to measure your x and y kerf size at: https://youtu.be/0UIqhCjMC0U

To run this you will need to install Python 3

Then you will need to install certain modules, this can be done by running

pip3 install svgpathtools numpy typer

Then just run

oval_kerf.py --kerf-x-size X --kerf-y-size Y filename.svg

where X and Y are the sizes of your laser dot

it will output a file called filename_kerfed.svg

Usage: oval_kerf.py [OPTIONS] FILENAME

Add an oval kerf to any paths in an SVG file.

Outputs an SVG file (filename_kerfed.svg) with the origianl paths and new

paths for inside and outside cuts. simply select which ones you want in

lighturn and delete the rest!

Arguments:

FILENAME [required]

Options:

--kerf-x-size FLOAT cm - horizontal radius of ellipse (kerf). You will need to work this out for your laser cutter

--kerf-y-size FLOAT cm - vertical radius of ellipse (kerf). You will need to work this out for your laser cutter

--delta-theta FLOAT radians - decrease this to increase the resolution of the kerf model (default should be fine) [default: 0.0001]

--max-segment-length FLOAT mm - max length of line segments is offset model. Increase this if your file is too big or decrease it if you need more resolution [default: 0.001]

--help Show this message and exit.

oval-kerf's People

Contributors

rotechnic avatar

Stargazers

Sándor Kocsis avatar  avatar  avatar Bunni avatar Divya Pujara avatar Konstantinos Papageorgiou avatar Ben Huemann avatar Alex Szymanik avatar

Watchers

 avatar  avatar

Forkers

lokimetasmith

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.