Wykres commitów

37 Commity (capellan-mypy)

Autor SHA1 Wiadomość Data
Kaalleen 6c9b902d15
Skip stitch zero length row (#3054)
* fix #3052
* add one stitch for zero length row
2024-07-09 18:26:47 +02:00
Lex Neva e8017e0bcc
auto-fill pull compensation (#2891) 2024-06-20 19:45:53 +02:00
Kaalleen c017cae01a
gray out randomize stitch length param when random stitch length is disabled (#3002) 2024-06-20 16:56:00 +02:00
George Steel d32a8fd466
Add randomized running and fill stitches (#2830)
Add a mode to running stitch that uses randomized phase and stitch length instead of even spacing. This greatly reduces moire effects when stitching closely-spaced curves in running-stitch-based fills.

Add option for randomized running stitch to:

    ripple stitch
    circular fill
    contour fill
    guided fill
    auto-fill

When is randomization is not selected, ripple stitch will use even running stitch when staggers are set to 0 (default) and the stagger algorithm from guided fill (which does not look nice with a stagger period of 0) when staggers is nonzero.

Also includes fix for satin contour underlays (missing tolerance default) mentioned in #2814. This sets the default tolerance to 0.2mm, which is the largest tolerance guaranteed to be backwards-compatible with existing designs using the default inset of 0.4mm.

Original commits:
* fix satin underlay tolerance default
* Add randomized running stitch, make available in ripple stitch, circular, and contour
* add randomized guided fill
* make ripple stitch use even stitching when not staggering or randomizing.
* add random auto-fill and switch jitter parameter to a percentage (matches satin)
* fix comments
2024-05-05 13:55:33 -04:00
Kaalleen 2439adafa8
Add "the tartan universe" (#2782) 2024-03-29 10:25:02 +01:00
Kaalleen 9afbf02384
Ignore multipoints in intersect regions with gratings (#2647) 2023-12-25 08:48:20 +01:00
Kaalleen ec076315bb
Various lock stitch options (#2006)
Co-authored-by: Lex Neva
2023-02-27 16:05:52 +01:00
Lex Neva f6c2aa8919 add more check_stop_flag() calls 2023-02-16 22:56:16 -05:00
Lex Neva b461253958 make simulator threads pre-emptible 2023-02-16 22:54:21 -05:00
Kaalleen e9278c55c3
This and that (#1727)
* dont fail on satin with fill

* fill stitch error message

* convert to satin mac issue

* auto_satin: add rung for two node old style satins

* avoid divide by zero in intersect_region_with_grating

* fix for incorrect stagger in guided fill

* better rail sectioning algorithm

* fix #1780

* fix #1816

Co-authored-by: Lex Neva
2022-11-27 08:37:59 +01:00
Kaalleen 7445b91851
lettering: ignore invalid glyph layers (#1892) 2022-11-10 14:03:32 +01:00
George Steel 1cc0eab911 Add support for fractional-length stagger cycles in fills. 2022-10-23 00:54:35 -04:00
Kaalleen 8d5ef5b663
Fixes (#1703)
* guide line position

* use direction from line to shape

* optimize intersection detection

* fix flapack elf

* handle weird guide lines better

* update starting point for self crossing (multiple) fills

* ripple: fixes and non circular join style

* avoid jumps in ripple stitch

* fallback only necessary if shape does not intersect grating

* make valid may return a polygon

* add profiling

* Stitch.__init__ didn't work right and was super slow

* shrink or grow to multipolygon

Co-authored-by: Lex Neva
2022-06-30 19:22:33 +02:00
Lex Neva b30fce85db undo aggressive line wrapping 2022-05-07 16:20:15 -04:00
Lex Neva a275d49a24 tangential->contour, fix legacy, remove unused params 2022-05-05 22:53:31 -04:00
Kaalleen e65aaebbca rebase corrections 2022-05-04 20:04:39 +02:00
Lex Neva bd8cb0d1ff use running_stitch instead for guided fill 2022-05-04 19:18:33 +02:00
Kaalleen 515ed3ea2f separate guided fill methods 2022-05-04 19:10:23 +02:00
Andreas d514eac819 adjusting namings 2022-05-04 19:07:04 +02:00
Kaalleen 82216b184c remove some pattern and marker mixups and some style issues 2022-05-04 19:04:44 +02:00
Andreas d445b38629 bug fixing+first spiral implementation 2022-05-04 18:59:11 +02:00
Andreas e15bce1401 minor changes 2022-05-04 18:59:11 +02:00
Andreas 3caaae6938 bug fixing 2022-05-04 18:59:08 +02:00
Andreas 125db3f83b Applied style guide 2022-05-04 18:57:12 +02:00
Andreas 0fcf8bb97c added tangential and guided fill 2022-05-04 18:55:40 +02:00
Kaalleen 3514f878ee
multipart geometry in intersect region (#1475) 2022-01-23 08:36:07 +01:00
Lex Neva b411305c67 use tags to decide which stitches to keep 2021-08-07 18:38:57 -04:00
Lex Neva b1af926ea6 add tags to fill stitches 2021-08-07 12:34:07 -04:00
Lex Neva 3b3f890c12 add copyright headers 2021-03-11 23:17:19 -05:00
Kaalleen e84a86d4ac
Update for Inkscape 1.0 (#880)
* update for inkscape 1.0
* add about extension
* Build improvements for the inkscape1.0 branch (#985)
* zip: export real svg not stitch plan
* #411 and #726
* Tools for Font Creators (#1018)
* ignore very small holes in fills
* remove embroider (#1026)
* auto_fill: ignore shrink_or_grow if result is empty (#589)
* break apart: do not ignore small fills

Co-authored-by: Hagen Fritsch <rumpeltux-github@irgendwo.org>
Co-authored-by: Lex Neva <github.com@lexneva.name>
2021-03-04 18:40:53 +01:00
Lex Neva e616061e85 underpathing! 2019-03-14 21:02:47 -04:00
Lex Neva 9ae97154d6 add option to skip last stitch in fill rows 2018-12-12 20:55:04 -05:00
Lex Neva 908f2cd772 pyflakes fixes 2018-08-21 21:43:09 -04:00
Lex Neva 94f391ab42 more pep8 fixes 2018-08-21 20:50:14 -04:00
Lex Neva 038875f876 autopep8 2018-08-21 20:32:50 -04:00
Lex Neva 05daffb7e0 refactor everything out of lib/__init__.py 2018-05-01 21:21:07 -04:00
Lex Neva 1b31806423 rename inkstitch/ to lib/
You can't have a module and a package named the same thing.  PyInstaller wants
to import the main script as if it were a module, and this doesn't work unless
there's no directory of the same name with a __init__.py in it.
2018-05-01 20:37:51 -04:00