diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-01-04 13:07:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-04 13:07:20 +0100 |
| commit | 9c89fc7675041d603ca7235cf3310963a48d02d6 (patch) | |
| tree | 62dbb18382de8f70d3fd94c193efa70263cdf5eb /lib | |
| parent | ca9a2833a9e6c0f06b5529340cc22f19e08e4bfb (diff) | |
precision test (FloatingPointError) (#3404)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/elements/satin_column.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elements/satin_column.py b/lib/elements/satin_column.py index 757455bb..039504e2 100644 --- a/lib/elements/satin_column.py +++ b/lib/elements/satin_column.py @@ -1468,7 +1468,7 @@ class SatinColumn(EmbroideryElement): return stitch_group def _split_linestring_at_end_point(self, linestring, end_point): - split_line = shgeo.LineString(self.find_cut_points(end_point)) + split_line = set_precision(shgeo.LineString(self.find_cut_points(end_point)), 0.00001) split_point = nearest_points(linestring, split_line)[0] project = linestring.project(split_point) start = substring(linestring, 0, project) |
