diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2024-06-07 14:33:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 14:33:20 -0700 |
| commit | f3ed7249ebafdb140ee5479288a0ee73a9ec8eb3 (patch) | |
| tree | 69523d0f5cea2564d6e532588f22df290d191af3 /lib/elements/fill_stitch.py | |
| parent | ee2506147e5cb08f212663a1cad9c09df0ee6867 (diff) | |
auto fill gap fix (#2884)
* first try
* fill gaps
* fix style
* add parameter
* loops can only be made of non-segments
Diffstat (limited to 'lib/elements/fill_stitch.py')
| -rw-r--r-- | lib/elements/fill_stitch.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py index 7b0ced92..f65c9c2b 100644 --- a/lib/elements/fill_stitch.py +++ b/lib/elements/fill_stitch.py @@ -276,6 +276,19 @@ class FillStitch(EmbroideryElement): return self.get_float_param('expand_mm', 0) @property + @param('gap_fill_rows', + _('Gap Filling'), + tooltip=_('Add extra rows to compensate for gaps between sections caused by distortion.' + 'Rows are always added in pairs, so this number will be rounded up to the nearest multiple of 2.'), + unit='rows', + type='int', + default=0, + sort_index=21, + select_items=[('fill_method', 'auto_fill')]) + def gap_fill_rows(self): + return self.get_int_param('gap_fill_rows', 0) + + @property @param('angle', _('Angle of lines of stitches'), tooltip=_('The angle increases in a counter-clockwise direction. 0 is horizontal. Negative angles are allowed.'), @@ -1009,6 +1022,7 @@ class FillStitch(EmbroideryElement): starting_point, ending_point, self.underpath, + self.gap_fill_rows, self.enable_random_stitches, self.random_stitch_length_jitter, self.random_seed, |
