Wykres commitów

24 Commity (b49bcd2a3fd62102f63c4573ab111bfc8662ce1d)

Autor SHA1 Wiadomość Data
Lex Neva 88b4ff3e66
Tie-in and tie-off (#100)
* turn inkstitch.py into a module

* add running stitch library function

* tie-in and tie-off

* remove temporary testing code
2018-02-27 19:43:15 -05:00
Lex Neva fabe5bcd32
Fix simulate (#42)
* Simulate now works regardless of the output format you chose when you ran Embroider.
* Simulate (and the preview in Params) now respects TRIMs.
* Inkscape restart required (embroider.inx changed).

This one kind of grew in the telling. #37 was a theoretically simple bug, but in reality, the code necessary to fix it was the straw that broke the camel's back, and I had to do a fair bit of (much needed) code reorganization. Mostly the reorganization was just under the hood, but there was one user-facing change around the Embroider extension's settings window.

Way back in the day, the only way to control things like the stitch length or satin density was through global options specified in the extension settings. We've long since moved to per-object params, but for backward compatibility, ink/stitch defaulted to the command-line arguments.

That means that it was possible to get different stitch results from the same SVG file if you changed the extension's settings. For that reason, I never touched mine. I didn't intend for my users to use those extension-level settings at all, and I've planned to remove those settings for awhile now.

At this point, the extension settings just getting in the way of implementing more features, so I'm getting rid of them and moving the defaults into the parameters system. I've still left things like the output format and the collapse length (although I'm considering moving that one too).
2018-01-28 16:10:37 -05:00
Lex Neva acaebaa956
add params for "TRIM after" and "STOP after" (#29)
* adds new options to Params: "TRIM after" and "STOP after"
  * adds tooltip support to Params
  * inkstitch now includes libembroidery and can directly output any supported file type
    * this avoids the need for `libembroidery-convert` and compiling embroidermodder!
  * TRIM support for DST format (inserts 3 JUMPs)
  * STOP command supported as an extra color change that the operator can assign to code C00
  * TRIMs cause the following jump stitch not to be displayed in the Embroidery layer
2018-01-23 20:13:37 -05:00
Lex Neva 9778d85326 remove pixels_per_mm option 2018-01-04 22:43:12 -05:00
Lex Neva 723e580b14 set sane defaults in embroider.inx 2016-11-19 22:34:21 -05:00
Lex Neva 841e9196ba major refactor
Split into classes for Fill, Stroke, and SatinColumn.  Renamed params to be
the same across XML attributes and OptionParser.  Added distinct stitch length
params for satin underlay.  Renamed "satin underlay" to "contour underlay" and
split out "center walk underlay" and "zigzag underlay".

The code is ten times more readable, parameters make more sense, and everything
is specified by the user in millimeters.  Basically, everything is way better.
2016-11-02 23:20:31 -04:00
Lex Neva 579ef18b56 remove obselete stitch order option 2016-10-28 22:12:03 -04:00
Lex Neva 14ec80d012 switch to millimeters and make pixels_per_millimeter an option 2016-10-28 22:10:54 -04:00
Lex Neva 696e3802ba remove hatching option 2016-10-27 21:59:46 -04:00
Lex Neva b06783a557 get rid of preamble code and feature
The code was poorly implemented and unclear.  I haven't ever had a need for
preamble.  I think my machine (brother SE400) might do it automatically.
2016-10-24 21:25:12 -04:00
Lex Neva b70e0e7fa8 stuff 2016-10-19 20:47:30 -04:00
Lex Neva 8f3b03ff6d add option to preserve absolute object stacking order 2016-02-25 17:11:03 -05:00
Lex Neva cf2db11d60 add 'Embroider Params' extension to set XML attributes on svg nodes 2016-01-20 03:04:32 -05:00
Lex Neva 521be47402 really fix "preserve order"
My previous fix didn't really do the job.  It took patches in Z-order, but runs of patches of the same color were fed into the TSP algorithm and it could embroider them in whatever order it chose.  This resulted in underlays for my fill regions being embroidered AFTER the fill.

Now, the "preserve order" option has been changed to "preserve layers".  Patches on different layers are gauranteed to be stitched in layer order.  Patches of the same color within the same layer can be stitched in any order as chosen by the TSP algorithm.
2016-01-18 18:18:30 -05:00
Lex Neva 3e3d540089 major revamp
* properly process transform parameters (ungrouping no longer necessary!)
  * handle satin on beziers properly
    * previously beziers were stroked as straight line segments that included control points
  * allow overriding parameters on individual paths by adding extra svg params
    * embroider_angle, embroider_stitch_length, embroider_zigzag_spacing, embroider_row_spacing, etc
    * set using "Edit XML"
  * default to 10 pixels per millimeter
  * properly write CSV files in millimeters (was dividing by 10)
  * always translate pattern to origin to fit in hoop
  * add "running stitch length" for < 0.5 stroke width)
  * don't traceback if no paths were selected
  * add "repeats" option for stroke (satin/running stitch) to go back and forth over the line
    * good for a double line of center-line underlay below satin
2016-01-08 22:56:10 -05:00
Bas Wijnen 284e6e4d21 Make it work well for Franklin
Add Franklin G-Code target as output.
Fix issue that filled area was treated as one patch per stitch.
Don't autodetect orientation; let the user choose by orienting the object.
Remove empty stitches.
Base generated inkscape path on output from file.
Allow maximum stitch length of 10 cm.
Save debug output in /tmp.
Disable almost all debugging.
Let hatching connect the segments.
2015-11-11 00:17:45 -05:00
Stefan Siegl 58967a4681 Increase precision of spacing params 2015-01-03 03:00:24 +01:00
Stefan Siegl 160b08062c Improve zigzag path around stroke + sep. spacing config
Don't use path nodes as stich points, just use the stroke as a
guide for the zigzag stich
2015-01-02 23:48:33 +01:00
Stefan Siegl 1689309c6e Optionally auto-generate preambles 2015-01-02 14:30:33 +01:00
Stefan Siegl 35e5c09c99 Allow to collapse (jump) stitches 2014-12-29 22:38:22 +01:00
Stefan Siegl e80f5f4003 Allow to hatch filled paths 2014-12-29 13:54:14 +01:00
Stefan Siegl b9d08f87ce Fix indentation 2014-12-29 13:29:53 +01:00
Stefan Siegl 4aef2789a2 Add Embroidermodder 2 CSV export 2014-12-27 17:30:54 +01:00
Stefan Siegl 47449d22cb Initial import of upstream code
Embroidery output extension for Inkscape;
downloaded from http://www.jonh.net/~jonh/inkscape-embroidery/
on 2014-12-26 19:38 CET

Copyright 2010 by Jon Howell, licensed under GPLv3.
2014-12-26 23:15:48 +01:00