Wykres commitów

187 Commity (21c22bd79020fa1deaa165f93420f1e2563c3e43)

Autor SHA1 Wiadomość Data
Lex Neva 21c22bd790 use PIXELS_PER_MM in simulate 2018-01-04 22:42:19 -05:00
Lex Neva 1e2c67e13d simulate bugfix 2018-01-04 22:42:08 -05:00
Lex Neva 7190d98dd4 parse and use viewBox attribute
The viewBox effectively adds global scaling and translation to all shapes in
the SVG.  Borrowing from inkscape-silhouette, we construct a transform from
the viewBox and apply it to all objects.

When adding the stitch plan into the SVG, we need to compensate for this
implied transformation, which we do by adding its inverse as a transform
on the stitch plan polylines.

All of this allows us to do away with the nonstandard 10 pixels per mm that
was previously hardcoded into inkstitch.  Old designs can add a viewBox to
switch from 10 pixels per mm to the standard 96 ppi that Inkscape uses.
2018-01-04 21:05:53 -05:00
Lex Neva d4c84a0fdb remove outdated index.html 2018-01-03 11:41:03 -05:00
Lex Neva 83bd9f4b70 more README fixups 2018-01-03 11:40:23 -05:00
Lex Neva 8ea0dd6d91 Create CNAME 2018-01-03 11:18:52 -05:00
Lex Neva d10cf3ecf1 Set theme jekyll-theme-minimal 2018-01-03 11:18:37 -05:00
Lex Neva 2d4e50d495 readme fixups 2018-01-03 11:11:47 -05:00
Lex Neva f50ec5e4c4 rename to ink/stitch 2018-01-03 11:09:18 -05:00
Lex Neva 823a135eaf add link to video of live preview feature 2018-01-01 19:33:25 -05:00
Lex Neva de17943061 remove live simulation from TODO 2018-01-01 15:46:36 -05:00
Lex Neva e204aadab0
Merge pull request #10 from lexelby/live-simulate
live stitching preview in the Params extension
2018-01-01 15:43:39 -05:00
Lex Neva 09b9dd94e6 adjust colors in the simulator to make them visible
Colors too close to white are darkened just a bit to make them stand out
against the white background.
2018-01-01 15:26:18 -05:00
Lex Neva 084dc783d2 add restart option for simulator 2018-01-01 15:00:58 -05:00
Lex Neva e9bddedf36 render objects in the correct order 2018-01-01 14:56:27 -05:00
Lex Neva 3cb4427fe6 make debugging slightly easier by popping up traceback 2017-12-31 22:55:57 -05:00
Lex Neva 75241f5f9d trim unnecessary whitespace 2017-12-31 22:38:15 -05:00
Lex Neva fd4d19bf8d don't start outdated simulation 2017-12-31 22:28:43 -05:00
Lex Neva c2388a53a6 adjust default simulation speed to always take ~5 seconds 2017-12-31 22:28:28 -05:00
Lex Neva 82fe2b7144 show simulate window at start 2017-12-31 22:10:10 -05:00
Lex Neva 824dd3c4e6 don't mirror Y axis for patches 2017-12-31 22:05:05 -05:00
Lex Neva 85aafccf25 cancel should not output the SVG
also sped up simulation
2017-12-30 21:30:53 -05:00
Lex Neva cb6df39773 get rid of thread killing
Switching to a cooperative model.  This has the downside that a long
patch computation will cause the simulate window to take longer to
update, but in practice the longest this will be is a couple of
seconds (for a very complicated autofill region).
2017-12-30 21:16:58 -05:00
Lex Neva 7152caa14d render in a background thread
The problem with this approach is that sometimes the SystemExit happens down
inside shapely and it complains bitterly (on stderr).  May have to rethink.
2017-12-30 20:54:35 -05:00
Lex Neva 61ed1da1cf params simulate window
when you change params, a simulate window opens to preview the results right
away
2017-12-30 16:05:21 -05:00
Lex Neva 42b83d4ec4 fix trailing whitespace 2017-12-28 19:55:04 -05:00
Lex Neva 69590df70c generalize EmbroiderySimulator
* add ability to use patches instead of a stitch file
  * add stop() and load() methods to use a new stitch file / patches list
2017-12-28 19:52:40 -05:00
Lex Neva a736f7293f rename draw_one_stitch to be more accurate 2017-12-28 15:39:56 -05:00
Lex Neva 6e85547432
Merge pull request #8 from lexelby/fix-macos
remove uses of `wx.CB_SORT` to fix OS X
2017-12-28 15:10:04 -05:00
Lex Neva 6a39517bd9 remove uses of wx.CB_SORT
Apparently that option is not available on OS X.  It's easy enough to just
sort the values before giving them to wxGTK.
2017-12-27 21:39:12 -05:00
Lex Neva 7c2b0b211c add some new ideas to TODO 2017-12-24 10:53:32 -05:00
Lex Neva 30cbe18714 Merge branch 'master' of github.com:lexelby/inkscape-embroidery 2017-12-07 15:17:19 +00:00
Lex Neva fdec5f3428 add link to youtube tutorial video 2017-12-06 20:16:02 +00:00
Lex Neva 7f658f2542
Merge pull request #5 from Moini/patch-1
Add update/install script for Ubuntu
2017-12-03 16:47:12 -08:00
Moini a870d48ad4
Do not install dependencies needed for building wxpython,
... and make sure pip can pick up the package installed via apt.
2017-12-03 02:53:33 +01:00
Moini 51399c0e16
Install wxpython via apt in Ubuntu autoinstall script 2017-12-03 02:11:12 +01:00
Moini 8406030070
Update README for installing wxpython via apt 2017-12-03 02:08:57 +01:00
Moini bf382475bd fix installation script for Ubuntu 16.04, add script to install libembroidery-convert, adapt README 2017-11-26 03:17:15 +01:00
Lex Neva af7c27ec25 don't infinitely loop in build_graph heuristic 2017-11-25 21:22:56 +00:00
Lex Neva a8a79e38de don't omit jump stitches 2017-11-23 20:04:31 +00:00
Moini ed8cdfa2c1
Move Ubuntu install script, change message to user, update README accordingly. 2017-11-22 18:24:20 +01:00
Lex Neva b67eb8759f
fix image width in README 2017-11-21 22:21:46 -05:00
Lex Neva 193bb1b2fd add soulstorm brew patch 2017-11-22 03:15:38 +00:00
Lex Neva 3cba500ff0 fix param definition for zigzag underlay inset
clearly I've never set this manually
2017-11-20 00:54:29 +00:00
Lex Neva 2695507dc3 switch stitch view from paths to polylines
Polylines in SVG are essentially the same thing as paths, but with no curves.
But inkscape-embroidery treats polylines as literal stitches; it does not
do satins, fills, etc but instead takes the coordinates and uses them directly
as stitches.

The advantage in this case is that one can re-run the extension on its own
output and get back the same stitch output.  Why would you want to do this?

Consider the case where you have a basic embroidery machine that can only do
a 4x4" square.  If you have something that's a bit bigger than 4 inches wide,
it might still fit in the square if you turn it at an angle.  But working with
your entire design rotated at an angle is a total pain, and you'd also have to
rotate the angles of all the fills to compensate.

Instead, just run the extension, rotate the stitches to fit, and re-run, and
your stitch file will work on your 4x4" machine.
2017-11-19 01:18:48 +00:00
Moini 3c668bbd26
Update README for script 2017-11-19 00:28:57 +01:00
Moini 4c9cccfa5c
Add installation script for Ubuntu and its derivatives
TODO: extend README for instructions. Please do not merge yet.
2017-11-18 23:58:45 +01:00
Lex Neva 06d985f11d remove copyright notices made redundant by LICENSE file 2017-11-18 20:52:34 +00:00
Lex Neva dd1d0983b7 add note to outdated index.html 2017-11-18 20:51:34 +00:00
Lex Neva 4c8b597222 add license 2017-11-18 20:25:58 +00:00