diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2024-06-20 10:45:53 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-20 19:45:53 +0200 |
| commit | e8017e0bcc0be2ef128bcea187f6528ed0a3d197 (patch) | |
| tree | 8196bb69d5ce4fee839056f24abe181fd773afb3 /lib/stitches/fill.py | |
| parent | c017cae01aa33a876795ec5da1438e8ec0f11fc5 (diff) | |
auto-fill pull compensation (#2891)
Diffstat (limited to 'lib/stitches/fill.py')
| -rw-r--r-- | lib/stitches/fill.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
