summaryrefslogtreecommitdiff
path: root/lib/stitches/StitchPattern.py
diff options
context:
space:
mode:
authorAndreas <v.andreas.1@web.de>2021-11-19 19:42:28 +0100
committerKaalleen <reni@allenka.de>2022-05-04 18:59:11 +0200
commit8966fa1919df5c2070cebebd080b54a56c7001b1 (patch)
tree5d8f2c3942cf3aae2fa80c0abf1c2511c14d172c /lib/stitches/StitchPattern.py
parente15bce1401af8b80a72aa528714e5667edbd9429 (diff)
minor changes
Diffstat (limited to 'lib/stitches/StitchPattern.py')
-rw-r--r--lib/stitches/StitchPattern.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/StitchPattern.py b/lib/stitches/StitchPattern.py
index 1fc5e389..1edfd452 100644
--- a/lib/stitches/StitchPattern.py
+++ b/lib/stitches/StitchPattern.py
@@ -123,11 +123,11 @@ def make_tree_uniform_ccw(root):
class StitchingStrategy(IntEnum):
CLOSEST_POINT = 0
INNER_TO_OUTER = 1
+ SPIRAL = 2
def offset_poly(
- poly, offset, join_style, stitch_distance, offset_by_half, strategy, starting_point
-):
+ poly, offset, join_style, stitch_distance, offset_by_half, strategy, starting_point):
"""
Takes a polygon (which can have holes) as input and creates offsetted
versions until the polygon is filled with these smaller offsets.