From ef17511c66a9f59bb9c74cb6f94f71e044c4fef1 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Fri, 17 Aug 2018 15:28:19 -0400 Subject: adjust magic number to 1.4 --- lib/stitches/auto_fill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/stitches/auto_fill.py') diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index 46490513..097ab1d9 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -467,10 +467,10 @@ def connect_points(shape, start, end, running_stitch_length, row_spacing): # connections from one row to the next. # # This seems to do a good job of avoiding going outside the shape in - # most cases. 1.5 is chosen as approximately the length of the + # most cases. 1.4 is chosen as approximately the length of the # stitch connecting two rows if the side of the shape is at a 45 # degree angle to the rows of stitches (sqrt(2)). - if abs(end_projection - start_projection) < row_spacing * 1.5: + if abs(end_projection - start_projection) < row_spacing * 1.4: return [InkstitchPoint(end.x, end.y)] # The outline path has a "natural" starting point. Think of this as -- cgit v1.2.3