Wykres commitów

72 Commity (main)

Autor SHA1 Wiadomość Data
Kaalleen bf42ef00ca
Update inkex (#2892)
* fix currentColor
* fix pip inkex import
* fix color block extension
2024-05-11 08:14:40 +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
Lex Neva 3f0f04abec
simulator fixes (#2844)
* fix slide and control panel rendering bugs

* clear marker lists when clearing stitch plan

* switch simulator back to wx

* remove unused function

* fix off-by-one error in color bar

* avoid overlapping command symbols of different types

* don't maximize simulator

* adjust alignment

* remove unused API server

* bugfix

* focus entire simulator panel

* rename simulator/realistic preview -> simulator

* experimental: background color picker

* set pagecolor to background color by default

* satisfy macos

* toggle jumps on drawing canvas

* clear frog family

---------

Co-authored-by: Kaalleen
2024-04-30 20:21:32 +02:00
George Steel 05ca4132f1
Add option to disable the stitch plan cache (#2655)
Setting the cache size to 0 bypasses the cache completely.
This is necessary during development to ensure newly-changed code actually gets run.

Also fixes the error pane in the params gui.


* make params warning pane large enough to see contents
* rename sizers in preferences dialog descriptive names
* add shapely version bound
* add option to disable stitch plan cache
* remove out-of-date wxg file
* make a cache size of 0 disable the cache
2024-04-27 14:16:18 -04:00
Kaalleen 2439adafa8
Add "the tartan universe" (#2782) 2024-03-29 10:25:02 +01:00
Kaalleen 39a825d823
Do not omit "multi_shapes" in geometry collections (#2708) 2024-02-01 19:23:29 +01:00
Kaalleen 2677c30a0f
Second chance for invalid fill stitch graphs (#2643) 2024-01-25 17:54:08 +01:00
Kaalleen d1624fdb36
Contour fill: replace buffer with offset_curve (#2654) 2023-12-26 09:37:30 +01:00
Lex Neva f0262a5709
handle case of travelling along shape border (#2593) 2023-11-10 16:42:46 +01:00
Lex Neva 82f2edac1a
attach params/lettering simulator window and allow detach (#2557) 2023-10-21 18:16:34 +02:00
Lex Neva f9438ac9ff return early for paths already inside 2023-07-01 08:23:46 +02:00
Lex Neva ec68c17a05 remove debug timing in frequently-run functions 2023-07-01 08:23:46 +02:00
Lex Neva 81e84db8a2 avoid losing start and end of path when clamping 2023-07-01 08:23:46 +02:00
Lex Neva 20829e6133
new way betterer satin algo (#2178)
* significantly faster length calculation
* way betterer satin algo
2023-04-14 18:51:40 +02:00
Lex Neva f57d61b6e6 meander fixes 2023-04-02 00:14:57 -04:00
Kaalleen 9552291de5
change method to update legacy fill_method (#2111) 2023-03-07 17:52:09 +01:00
Kaalleen 90d3fcf69c
add meander preview images (#2113) 2023-03-07 17:44:28 +01:00
Kaalleen ec076315bb
Various lock stitch options (#2006)
Co-authored-by: Lex Neva
2023-02-27 16:05:52 +01:00
Kaalleen ed4aa55a73
Circular fill (#2053) 2023-02-27 16:01:37 +01:00
Lex Neva 36f0946e2d fix flask json deprecation 2023-02-22 21:10:33 -05:00
Lex Neva 7fa3fec534 fix deprecation warning 2023-02-20 15:27:56 -05:00
Lex Neva 9ccf8b9b77 better smoothing algorithm 2023-02-20 15:27:56 -05:00
Lex Neva 68249fa783 avoid weird end of line after smoothing 2023-02-20 15:27:55 -05:00
Lex Neva 847e133f97 meander fill: more work 2023-02-20 15:27:55 -05:00
Lex Neva e2965e78f0 use snake case
per python coding standard
2023-02-20 15:27:55 -05:00
Lex Neva 85f921cd33 typo fix 2023-02-20 15:27:55 -05:00
Lex Neva ba835b4f5e meander fill: initial version 2023-02-20 15:27:55 -05:00
Lex Neva 8cead6e3d9 add smoothness option for contour fill 2023-02-20 15:27:35 -05:00
Lex Neva 0ace1ce72c add clamp_path_to_polygon 2023-02-20 15:27:35 -05:00
Lex Neva dae4573bd2 add smooth_path 2023-02-20 15:27:35 -05:00
Lex Neva 98bc2e2ff9 add preferences UI including cache settings 2023-02-18 22:34:47 -05:00
Lex Neva d51feec98d cache key generation using params, path, color, and style 2023-02-18 22:34:16 -05:00
Lex Neva 0e225277db move get_stitch_plan_cache() to utils.cache 2023-02-18 22:34:16 -05:00
Lex Neva 62b7c0080c add comment 2023-02-16 22:54:21 -05:00
Lex Neva b461253958 make simulator threads pre-emptible 2023-02-16 22:54:21 -05:00
George Steel 9ca7088651 Replace running stitch algorithm to give consistent stitch lengths. 2023-01-22 03:06:01 -05:00
George Steel d416407f2b add comment to PRNG 2023-01-02 19:33:50 -05:00
George Steel e28ea888a9 use random oracle for randomized satin columns and redo split stitches 2022-12-26 20:13:48 -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 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 ffd770cbbd
guided fill stagger (#1700) 2022-06-22 16:11:12 +02:00
Kaalleen 2fde596272
Guided ripple stitch (#1675)
Co-authored-by: @lexelby
2022-06-10 16:25:30 +02:00
Lex Neva aeeaf72338 wip 2022-05-04 19:18:33 +02:00
Lex Neva e14fffb879 remove redundant cut() function 2022-05-04 19:18:33 +02:00
Lex Neva 6ca1af0c88 avoid anytree dependency 2022-05-04 19:18:33 +02:00
Kaalleen 6ca29b0668
inkscape config path fallback (#1554) 2022-01-24 13:44:00 +01:00
Kaalleen d0455f28ac
inkscape config path (#1532) 2022-01-12 18:19:10 +01:00
rejbasket 41ace3a9e5
add macOS and windows installer (#1352) 2021-12-08 22:18:41 +01:00
Lex Neva 4b9df25a9a Stitch + Stitch yields Stitch 2021-08-07 12:14:43 -04:00
luzpaz e6fad808e9
Fix typos (#1291) 2021-07-29 20:52:44 +02:00