summaryrefslogtreecommitdiff
path: root/lib/stitches/auto_fill.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stitches/auto_fill.py')
-rw-r--r--lib/stitches/auto_fill.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py
index d3072df3..7e98e434 100644
--- a/lib/stitches/auto_fill.py
+++ b/lib/stitches/auto_fill.py
@@ -11,7 +11,7 @@ from typing import Iterator
import networkx
from shapely import geometry as shgeo
-from shapely import make_valid, segmentize
+from shapely import make_valid, segmentize, set_precision
from shapely.ops import snap, unary_union
from shapely.strtree import STRtree
@@ -487,7 +487,7 @@ def process_travel_edges(graph, fill_stitch_graph, shape, travel_edges):
# This makes the distance calculations below a bit faster. We're
# not looking for high precision anyway.
- outline = shape.boundary.simplify(0.5 * PIXELS_PER_MM, preserve_topology=False)
+ outline = set_precision(shape.boundary.simplify(0.5 * PIXELS_PER_MM, preserve_topology=False), 0.000001)
for ls in travel_edges:
# In most cases, ls will be a simple line segment. If we're