diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-06-03 06:52:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-03 06:52:03 +0200 |
| commit | 7f9ae2ca1eb5b89b0705363911bab242486642db (patch) | |
| tree | 8aa8d8f48efa707176a77a5135f5744303958941 /lib/stitches | |
| parent | 4cf85797bc18c2f0b78a401c112c4cc183ca881f (diff) | |
Avoid FloatingPointError (fill) (#2959)
Diffstat (limited to 'lib/stitches')
| -rw-r--r-- | lib/stitches/auto_fill.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index 85543cea..a277e000 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -15,7 +15,6 @@ from shapely import segmentize from shapely.ops import snap from shapely.strtree import STRtree - from ..debug.debug import debug from ..stitch_plan import Stitch from ..svg import PIXELS_PER_MM @@ -24,9 +23,9 @@ from ..utils.clamp_path import clamp_path_to_polygon from ..utils.geometry import Point as InkstitchPoint from ..utils.geometry import (ensure_multi_line_string, line_string_to_point_list) +from ..utils.prng import join_args from ..utils.smoothing import smooth_path from ..utils.threading import check_stop_flag -from ..utils.prng import join_args from .fill import intersect_region_with_grating, stitch_row from .running_stitch import even_running_stitch @@ -143,6 +142,7 @@ def project(shape, coords, outline_index): """ outline = ensure_multi_line_string(shape.boundary).geoms[outline_index] + return outline.project(shgeo.Point(*coords)) |
