styloInt / python-embroidery

python code for generating embroidery designs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project contains python scripts that generate CAD-like stitch CSV files that can be used by the libembroidery library to be converted into the right format for your machine.

SVGs this project can't currently digitize

ViewBox is ignored

All incoming shapes should be transformed by the viewBox attribute, but they aren't. The scale is taken from the units on the width, and the actual value of the width and height are ignored.

Discontinuous Shapes

It also can't currently handle discontinuous paths, such as:

 <path
     d="M 0 0 L 0 500 L 250 500 L 250 0 L 0 0 z M 750 0 L 750 500 L 1000 500 L 1000 0 L 750 0 z "
     id="rect6426"
     style="fill:#ff0000;fill-opacity:1" />

This will be digitized as:

Text

Text elements, such as:

<text> Hello world!</text>

Will only be rendered if you are using my fork of svgpathtools

Unclosed paths will not be filled

If a path does not end where it started, it will not get filled in. This is in contrast to how SVGs are typically rendered, where any area within a concave path are filled in.

Will generate patterns that are too large for your machine

This package may generate patterns that are too large for your machine to deal with.

About

python code for generating embroidery designs

License:MIT License


Languages

Language:Python 100.0%