Wykres commitów

327 Commity (d5e873f8c50789b94e24d27a30c72f65ba9c08a3)

Autor SHA1 Wiadomość Data
Kaalleen 75fdfe22de
fix base file name bug 2019-04-10 17:42:49 +02:00
Lex Neva 2c39fbc8cf Merge branch 'master' into lexelby/revamp-fill 2019-04-10 00:07:55 -04:00
Lex Neva 9d4441b700 remove unnecessary comparisons to None 2019-04-10 00:00:44 -04:00
Lex Neva a766e4e408 make error message more readable 2019-04-09 23:49:54 -04:00
Lex Neva 92541eb760 split up long function 2019-04-09 23:47:24 -04:00
Kaalleen c94a28756d
simulate needle penetration points 2019-04-07 21:00:14 +02:00
Lex Neva f204366347 try harder to avoid traveling around the border 2019-04-04 19:58:35 -04:00
Lex Neva 1f7b69980c render graphs as a single path to avoid killing inkscape 2019-04-04 19:57:40 -04:00
Lex Neva 6c5e57d39c implement lettering presets 2019-04-02 23:39:54 -04:00
Lex Neva a6a86973dd add localization for font names and descriptions 2019-04-02 23:07:38 -04:00
Lex Neva a9cf553066 add font description to font selector dropdown 2019-04-02 22:36:54 -04:00
Lex Neva 5550536949 implement font chooser 2019-04-02 20:15:06 -04:00
Kaalleen 211561eabc
simulator stitch box improvement (#402) 2019-04-02 06:27:33 +02:00
Lex Neva f5f0ce49a8 fix 'too many values to unpack' exception 2019-03-30 22:20:46 -04:00
Lex Neva d0ce93649d
Merge pull request #401 from inkstitch/lexelby/satin-density-fix
don't do density compensation in underlay
2019-03-30 21:57:19 -04:00
Lex Neva 37722b7ddf fix underlay underpath checkbox 2019-03-30 21:56:39 -04:00
Lex Neva 284ef6afcb avoid parsing forward slashes in docstring 2019-03-29 20:24:24 -04:00
Lex Neva 513850c975 add vertical travel edges for less jagged travel paths 2019-03-29 20:19:25 -04:00
Lex Neva 90a16fb7f9 more debug logging 2019-03-29 15:03:28 -04:00
Lex Neva 1995015021 add SVG debugging with LineStrings 2019-03-28 15:52:42 -04:00
Lex Neva 56f1d85647 add timing logging for auto-fill 2019-03-28 15:22:11 -04:00
Lex Neva 8aa86f6619 set up debug logging 2019-03-28 15:21:50 -04:00
Kaalleen f435520663
Add Custom Page to Print PDF (#418) 2019-03-26 18:24:02 +01:00
Lex Neva f6e6d099d2 penalize outline edges more 2019-03-24 14:57:47 -04:00
Lex Neva af6588a442 'fix' style 2019-03-24 14:50:49 -04:00
Lex Neva cf6621d0dd make travel stitch prefer the center of the shape 2019-03-22 20:08:47 -04:00
Lex Neva e54b9d7d8d default underlay underpathing to enabled as well 2019-03-22 19:34:03 -04:00
Lex Neva e7a8a3677b put underlay underpath checkbox in the right tab 2019-03-21 21:09:03 -04:00
Lex Neva eada4bed7e don't let simulator preview thread crash 2019-03-21 21:09:03 -04:00
Lex Neva 90fe045169 don't try to end inside the shape 2019-03-21 21:09:03 -04:00
Lex Neva 97ced89e87 switch to multigraph to avoid accidentally deleting outline edges 2019-03-20 22:41:57 -04:00
Lex Neva 1e5733bbcd add first stitch 2019-03-20 20:46:26 -04:00
Lex Neva 4c1f1bc2bb tidy up start/end travel code 2019-03-20 20:45:29 -04:00
Lex Neva 69df0271b5 protect against shapely error 2019-03-20 20:35:54 -04:00
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 13b6c67644 less haphazard positioning for commands 2019-03-08 20:51:58 -05:00
Lex Neva d1c001857d get root properly 2019-03-08 20:51:58 -05:00
Lex Neva fb3c8186d2 lower trim threshold to 0.75mm 2019-03-08 20:06:36 -05:00
Lex Neva a14ed903cf auto satin should trim at the end too 2019-03-08 19:59:28 -05:00
Lex Neva 602f201cb6 implement trim option for lettering 2019-03-08 19:57:11 -05:00
Lex Neva 53a9bd6b31 add trims in stitches.auto_satin 2019-03-08 19:57:11 -05:00
Lex Neva 4ba3cd7085 refactor add_commands() out into commands module 2019-03-08 19:57:11 -05:00
Lex Neva aea7b846a2 correct for viewbox 2019-03-08 19:57:11 -05:00
Lex Neva 003ee406a5 add trim checkbox 2019-03-08 19:57:11 -05: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