From e8017e0bcc0be2ef128bcea187f6528ed0a3d197 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 20 Jun 2024 10:45:53 -0700 Subject: auto-fill pull compensation (#2891) --- lib/stitches/fill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/stitches/fill.py') diff --git a/lib/stitches/fill.py b/lib/stitches/fill.py index 4f3e2208..8480ea0b 100644 --- a/lib/stitches/fill.py +++ b/lib/stitches/fill.py @@ -113,10 +113,10 @@ def intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing=Non # Now get a unit vector rotated to the requested angle. I use -angle # because shapely rotates clockwise, but my geometry textbooks taught # me to consider angles as counter-clockwise from the X axis. - direction = InkstitchPoint(1, 0).rotate(-angle) + direction = InkstitchPoint(-1, 0).rotate(-angle) # and get a normal vector - normal = direction.rotate(math.pi / 2) + normal = direction.rotate(-math.pi / 2) # I'll start from the center, move in the normal direction some amount, # and then walk left and right half_length in each direction to create -- cgit v1.2.3