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
e884fb78db
add running stitch tolerance param ( #1701 )
2022-06-22 15:26:37 +02:00
Lex Neva
b30fce85db
undo aggressive line wrapping
2022-05-07 16:20:15 -04:00
Lex Neva
672bded125
shapely geoms fixes
2022-05-06 21:03:56 -04:00
Lex Neva
a275d49a24
tangential->contour, fix legacy, remove unused params
2022-05-05 22:53:31 -04:00
Lex Neva
aeeaf72338
wip
2022-05-04 19:18:33 +02:00
Lex Neva
bd8cb0d1ff
use running_stitch instead for guided fill
2022-05-04 19:18:33 +02:00
Lex Neva
e6fcf11035
fix some shapelydeprecations
2022-05-04 19:18:33 +02:00
Lex Neva
f4c47a8e22
generalize get_segments and process_travel_edges
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
Andreas
8966fa1919
minor changes
2022-05-04 18:59:11 +02:00
Andreas
e15bce1401
minor changes
2022-05-04 18:59:11 +02:00
Andreas
1a1939b5da
Bug fixing + refactoring
2022-05-04 18:57:20 +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
Lex Neva
dd86500835
keep underlay, underpath, and border travel
2021-08-15 17:26:14 -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
Kaalleen
f31e09312a
fix min_arg() is an empty sequence ( #941 )
2020-12-28 07:13:16 +01:00
Lex Neva
46dbe4668e
actually split outline edge
2020-03-16 23:00:19 -04:00
Lex Neva
c81c11eb53
ensure starting point is on the border
2020-03-16 23:00:19 -04:00
Lex Neva
9bb4686df7
fix NetworkXNoPath error
2020-03-16 23:00:19 -04:00
Lex Neva
502f20d6f8
avoid jumps when not underpathing autofill
2020-03-16 23:00:19 -04:00
Kaalleen
077f7ea72b
add Troubleshoot extension ( #465 )
...
adds an extension to help you understand what's wrong with an object and how to fix it, e.g. "invalid" fill shapes
2019-08-05 22:42:48 -04:00
Lex Neva
e8bd745dfc
handle single linestrings properly ( fixes #471 )
2019-06-22 18:13:01 -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
Lex Neva
f204366347
try harder to avoid traveling around the border
2019-04-04 19:58:35 -04:00
Lex Neva
f5f0ce49a8
fix 'too many values to unpack' exception
2019-03-30 22:20:46 -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
56f1d85647
add timing logging for auto-fill
2019-03-28 15:22:11 -04:00
Lex Neva
f6e6d099d2
penalize outline edges more
2019-03-24 14:57:47 -04:00
Lex Neva
cf6621d0dd
make travel stitch prefer the center of the shape
2019-03-22 20:08:47 -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
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