Wykres commitów

284 Commity (e8bd745dfca8c40c0e688c31cec1b09f1cfc65d2)

Autor SHA1 Wiadomość Data
Lex Neva 685df3b3f0 fix start/end at top or bottom of shape 2019-03-19 23:28:19 -04:00
Lex Neva 68590492f5 allow starting and ending on the border of a hole 2019-03-19 22:36:05 -04:00
Lex Neva 6b8121fb04 add underpath checkboxes for underlay and top stitching 2019-03-19 22:30:07 -04:00
Lex Neva 8520d4e63c avoid cutting corners 2019-03-19 20:26:25 -04:00
Lex Neva ba2b78d349 use blazing-fast STRtree for intersection detection 2019-03-19 20:02:42 -04:00
Lex Neva 2ba333c8a7 avoid putting underpathing on top 2019-03-18 20:57:05 -04:00
Lex Neva ec14fe7343 more cleanup 2019-03-14 21:54:51 -04:00
Lex Neva 200e2ac5f7 deduplicate and comment code 2019-03-14 21:46:44 -04:00
Lex Neva e616061e85 underpathing! 2019-03-14 21:02:47 -04:00
Lex Neva 30ea54dc6d tidy up the code a bit 2019-03-13 20:11:07 -04:00
Lex Neva 8323bd5f0f remove unused code 2019-03-13 06:18:27 -04:00
Lex Neva 8ffa9ca90e faster, simpler auto-fill algorithm 2019-03-12 23:03:22 -04:00
Lex Neva 0a06fa740c shapely.geometry -> shgeo for brevity 2019-03-12 22:32:56 -04:00
Lex Neva 110dca3c9a make debugging auto-fill easier 2019-03-10 18:24:10 -04:00
Lex Neva f30dba6728 don't do density compensation in underlay 2019-03-08 19:55:13 -05:00
Kaalleen 0b9f95ed88
keep color when convert to satin column 2019-03-06 17:49:43 +01:00
Lex Neva b63fe4aa84 avoid gaps at the end 2019-03-01 21:31:20 -05:00
Lex Neva bf40f01b5d compensate for non-parallel rails
This uses some trig to try to reduce the excess density we were seeing with
rails that expand or contract from each other.  While I was in there I
redid the satin algorithm, making it much simpler and less magical-seeming.
2019-03-01 21:31:20 -05:00
Lex Neva fa3236372b fix style 2019-02-16 16:53:38 -05:00
Lex Neva be7d0af82d improve error message when trying to autofill tiny shapes 2019-02-16 16:53:38 -05:00
Lex Neva 4c7f8f32fd show inkscape label in error messages 2019-02-16 16:53:38 -05:00
Lex Neva 52bf2c80b6 fix style 2019-02-16 16:53:38 -05:00
Lex Neva fdd9a74fd6 fix argument bug in auto-satin 2019-02-16 16:53:38 -05:00
redhat421 f3cdcfbdfa Remove extra self param from store_preset call. (#381)
It looks like an extra "self" parameter was added to the store_preset call in the add_preset function.

This prevents add_preset from working.
2019-02-16 16:53:38 -05:00
Kaalleen 7b04eb1234 Fix print metadata (#372) 2019-02-16 16:53:38 -05:00
Lex Neva 3d99377852 don't add jump stitches between satin column fill and top stitching 2019-01-17 19:55:51 -05:00
Lex Neva 6a8edfc1cd fix crash if fill start and end points are very close 2019-01-04 20:22:10 -05:00
Lex Neva 04ed93cb25 ability to stitch a single-point running stitch path 2019-01-04 20:08:11 -05:00
Lex Neva 004df12e88 don't crash on a design with no stitches 2018-12-30 20:15:32 -05:00
Lex Neva c8d354a2fc print error message correctly 2018-12-22 22:12:23 -05:00
Lex Neva 32458c619a fix fill == none detection 2018-12-19 14:39:47 -05:00
Lex Neva 9f4f6d85a0 fix duplicate point handling 2018-12-19 12:46:31 -05:00
Lex Neva 3cf7f1547c fix error message 2018-12-18 20:32:14 -05:00
Lex Neva dc77f5cebc fix style 2018-12-18 20:25:08 -05:00
Lex Neva ef45f4b740 Merge branch 'master' into lexelby/bugs 2018-12-18 20:23:04 -05:00
Lex Neva 1e0280db10
basic lettering GUI (#351) 2018-12-15 20:21:41 -05:00
Lex Neva 8f3c922011 fix style 2018-12-13 20:10:50 -05:00
Lex Neva 9ae97154d6 add option to skip last stitch in fill rows 2018-12-12 20:55:04 -05:00
Lex Neva 7a73b20115 tidy imports 2018-12-12 20:55:04 -05:00
Lex Neva 74e6dac011 avoid creating paths with empty 'd' in stitch plan (#363) 2018-12-12 20:55:04 -05:00
Lex Neva e47fcaa8da tidy up imports 2018-12-12 20:55:04 -05:00
Lex Neva ef83ff75a0 use proper defaults for fill and stroke in Params (#362) 2018-12-12 20:55:04 -05:00
Kaalleen 8389d792ad
Fix encoding 2018-11-23 22:09:40 +01:00
Lex Neva f5c85183d9
basic lettering (#344)
Can handle multiple lines of text and routes the stitching in alternating directions on each line.
2018-11-14 20:23:06 -05:00
Lex Neva be833f898f
new extension: Auto-Route Satin Columns (#330)
**video demo:** https://www.youtube.com/watch?v=tbghtqziB1g

This branch adds a new extension, Auto-Route Satin Columns, implementing #214!  This is a huge new feature that opens the door wide for exciting stuff like lettering (#142).

To use it, select some satin columns and run the extension.  After a few seconds, it will replace your satins with a new set with a logical stitching order.  Under-pathing and jump-stitches will be added as necessary, and satins will be broken to facilitate jumps.  The resulting satins will retain all of the parameters you had set on the original satins, including underlay, zig-zag spacing, etc.

By default, it will choose the left-most extreme as the starting point and the right-most extreme as the ending point (even if these occur partway through a satin such as the left edge of a letter "o").  You can override this by attaching the new "Auto-route satin stitch starting/ending position" commands.

There's also an option to add trims instead of jump stitches.  Any jump stitch over 1mm is trimmed.  I might make this configurable in the future but in my tests it seems to do a good job.  Trim commands are added to the SVG, so it's easy enough to modify/delete as you see fit.
2018-10-30 17:43:21 -06:00
Lex Neva d9525968a2
fix manual stitch and add debugging support (#339)
* add debugging support using pydev

* fix: don't add tie stitches for manual stitch

* fix style
2018-10-23 18:08:46 -06:00
Lex Neva 1d55716f26
add g-code output format (#336) 2018-10-20 17:50:39 -06:00
Lex Neva 8830eb7d40
new extension: split satin (#315)
This branch adds a new command to split a satin column at a specified point.  The split happens at a stitch boundary to ensure that the two resulting satins sew just like the original.  All parameters set on the original satin remain set on the two new satins, and all rungs are retained.  If one of the satins would have no rungs left, a new rung is added.

How to use:

1. Select a satin column (simple satin doesn't work)
2. Attach the "Satin split point" command using the "Attach commands to selected objects" extension.
3. Move the symbol (or just the connector line's endpoint) to point to the exact spot you want the satin to be split at.
4. Select the satin column again.
5. Run "Split Satin Column".
6. The split point command and connector line disappear, and nothing else appears to have happened.  Select your satin and you'll see that it's been split.

This extension is a by-product of my initial work on #214.  Ink/Stitch will need the ability to split a satin at an arbitrary point, and I figured, why not go ahead and release that functionality as an extension while I'm at it? :)
2018-09-29 14:00:36 -06:00
Lex Neva 5139c13fd7
Merge pull request #316 from inkstitch/lexelby/bug-fixes
more bug fixes
2018-09-29 13:22:05 -06:00
Kaalleen efc2816f3c
update simulator (#318)
* fix change direction button
* pause animation when going one step forward or backward
* add button tool tips to inform about shortcut keys
2018-09-22 07:59:20 +02:00
Lex Neva ac77a72f3f bullets require unicode strings 2018-09-18 20:39:54 -04:00
Lex Neva 9203283081 use ugettext() instead of gettext() 2018-09-18 20:24:53 -04:00
Lex Neva 5e9cb83a93 remove code style exemption for params.py and simulator.py 2018-09-16 13:09:49 -04:00
Lex Neva fa125ff27e remove obselete 'fake color change' code 2018-09-16 13:09:00 -04:00
Lex Neva 9b619de228 use faster algorithm for ties 2018-09-15 21:35:04 -04:00
Lex Neva bdf98a7e91 handle SVGs without bounding box 2018-09-15 21:03:42 -04:00
Lex Neva d30507171b Merge remote-tracking branch 'origin/master' into lexelby/bug-fixes 2018-09-12 20:51:16 -04:00
Lex Neva d398e10b85 Merge remote-tracking branch 'origin/master' into lexelby/bug-fixes 2018-09-12 20:31:06 -04:00
Lex Neva a876066c75 Merge remote-tracking branch 'origin/master' into simulator-timeline 2018-09-12 20:30:13 -04:00
Lex Neva ba1c2ea78f fix lint 2018-09-12 20:25:15 -04:00
Lex Neva 7b5995c705 fix logic 2018-09-10 23:06:18 -04:00
Lex Neva 944022ee53 proper running stitch for big row spacing 2018-09-10 23:04:08 -04:00
Lex Neva b437b8403c fix pencil icon path 2018-09-09 00:07:59 -04:00
Lex Neva c980279ae6 fix missing imports 2018-09-01 20:11:44 -04:00
Lex Neva 71643ba280 make error messages more useful 2018-09-01 20:11:01 -04:00
Lex Neva 1c2dc2d954 add error message for invalid geometries (#216) 2018-09-01 20:11:01 -04:00
Lex Neva c3d6780bf1 only save modified values in presets 2018-09-01 20:11:01 -04:00
Lex Neva 29f0e31ccd name AutoFill tabs consistently 2018-09-01 20:11:01 -04:00
Lex Neva 05327d56db stop showing 'None' in Params 2018-09-01 20:11:01 -04:00
Lex Neva e2b5e96834 add change indicator to Params (#217) 2018-09-01 20:11:01 -04:00
Lex Neva 1531e8f520 support ~, and %vars% in Embroider output directory (#279) 2018-09-01 20:11:01 -04:00
Lex Neva 29a8bd37d5 useful error message when writing embroidery file fails (fixes #279) 2018-09-01 20:11:01 -04:00
Lex Neva 5c0e2b8e9f don't show an icon on windows 2018-09-01 20:11:01 -04:00
Lex Neva 7bf8c2d871 helpful error message for empty path "d" attribute (fixes #220)
also internationalizes "error:" string
2018-09-01 20:11:01 -04:00
Lex Neva 9360e9b930 fix code style 2018-09-01 14:22:46 -04:00
Lex Neva 3fe3399d90 simulator standalone mode 2018-09-01 13:35:47 -04:00
Lex Neva cdc95ceca3 make dest dir on windows 2018-08-28 15:20:35 -04:00
Lex Neva 5f29e5a4a5 show negative speed when animating backward 2018-08-27 21:56:25 -04:00
Lex Neva e749fdc781 reverse the >> button 2018-08-27 20:57:49 -04:00
Lex Neva 8d196ace7f position params's simulator window at the top of the screen 2018-08-27 16:43:23 -04:00
Lex Neva ab656800a0 fix windows issue 2018-08-27 16:27:51 -04:00
Lex Neva a636462803 i18n 2018-08-27 15:54:06 -04:00
Lex Neva 7eb36c5fc6 buttons for backward and forward one stitch 2018-08-27 15:51:27 -04:00
Lex Neva e56e99329a remove old code 2018-08-27 15:45:10 -04:00
Lex Neva 165d96e3b1 show command name in simulator (STITCH, JUMP, etc) 2018-08-27 15:36:54 -04:00
Lex Neva 7319937ea6 make line thickness value less magical 2018-08-26 23:50:17 -04:00
Lex Neva 7637848ad8 zoom and pan support 2018-08-26 23:34:27 -04:00
Lex Neva 6bb2fa0c91 uniform crosshair size independent of zoom 2018-08-26 16:41:57 -04:00
Lex Neva b3516785aa automatically scale and center the design 2018-08-26 16:14:03 -04:00
Lex Neva e854df4307 handle auto-refresh from Params 2018-08-26 15:34:13 -04:00
Lex Neva a355af2874 handle window size and target duration 2018-08-26 15:02:51 -04:00
Lex Neva 79e8ad5b31 forward/backward one frame support 2018-08-26 14:44:13 -04:00
Lex Neva 8351cf21a0 add keyboard shortcut support 2018-08-26 14:32:34 -04:00
Lex Neva 0bc2992686 shouldn't subtract rendering time from CallLater time 2018-08-26 00:10:11 -04:00
Lex Neva c44e008029 draggable slider and editable stitch number 2018-08-25 22:48:44 -04:00
Lex Neva bf70fd9031 WIP: revamp UI and rendering algorithm 2018-08-25 22:05:18 -04:00
Lex Neva 11d3cea80c Merge remote-tracking branch 'origin/master' into simulator-timeline 2018-08-25 11:47:48 -04:00
Momo c5bd187884 * seperated controls
* one frame movements
2018-08-25 10:57:17 +02:00
Lex Neva 77177f9b55 fix style 2018-08-24 20:56:42 -04:00
Lex Neva 53f92df056 add 'Add Commands' extension 2018-08-24 20:56:41 -04:00