diff options
| author | Lex Neva <github.com@lexneva.name> | 2023-02-17 21:13:13 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2023-02-20 15:27:56 -0500 |
| commit | 9ccf8b9b7780b997c1f801a87dafd99f86f048a1 (patch) | |
| tree | 75619e002dbf68dde0b9c2c2fd00858ec49bfd4b /lib/stitches | |
| parent | 3da70348b03d8d40ef71d2f515bb9f179977e693 (diff) | |
better smoothing algorithm
Diffstat (limited to 'lib/stitches')
| -rw-r--r-- | lib/stitches/contour_fill.py | 2 | ||||
| -rw-r--r-- | lib/stitches/meander_fill.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/stitches/contour_fill.py b/lib/stitches/contour_fill.py index 8e47518f..f5f2a3ee 100644 --- a/lib/stitches/contour_fill.py +++ b/lib/stitches/contour_fill.py @@ -12,9 +12,11 @@ from shapely.validation import make_valid from ..stitch_plan import Stitch from ..utils import DotDict +from ..utils.clamp_path import clamp_path_to_polygon from ..utils.geometry import (cut, ensure_geometry_collection, ensure_multi_polygon, reverse_line_string, roll_linear_ring) +from ..utils.smoothing import smooth_path from ..utils.threading import check_stop_flag from .running_stitch import running_stitch diff --git a/lib/stitches/meander_fill.py b/lib/stitches/meander_fill.py index ca3b7d69..2cd235fb 100644 --- a/lib/stitches/meander_fill.py +++ b/lib/stitches/meander_fill.py @@ -6,7 +6,7 @@ from .running_stitch import running_stitch from .. import tiles from ..debug import debug from ..stitch_plan import Stitch -from ..utils import smooth_path +from ..utils.smoothing import smooth_path from ..utils.geometry import Point as InkStitchPoint, ensure_geometry_collection from ..utils.list import poprandom from ..utils.prng import iter_uniform_floats |
