summaryrefslogtreecommitdiff
path: root/lib/stitches/fill.py
diff options
context:
space:
mode:
authorAndreas <v.andreas.1@web.de>2022-02-02 21:19:31 +0100
committerKaalleen <reni@allenka.de>2022-05-04 19:07:04 +0200
commitd514eac81937bb64815239dd3aa96e38d6556a32 (patch)
treecdd4e2d95a3be208f9f25cfb9a811bcd6f9ec66e /lib/stitches/fill.py
parentb14e445daeafd12984cb40af289a415a0cb90e5d (diff)
adjusting namings
Diffstat (limited to 'lib/stitches/fill.py')
-rw-r--r--lib/stitches/fill.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/stitches/fill.py b/lib/stitches/fill.py
index ceac56d9..b5f86641 100644
--- a/lib/stitches/fill.py
+++ b/lib/stitches/fill.py
@@ -176,8 +176,7 @@ def intersect_region_with_grating_line(shape, line, row_spacing, end_row_spacing
rows.append(runs)
else:
rows.insert(0, runs)
- # if len(runs) > 1:
- # print("HIERRRR!")
+
line_offsetted = line_offsetted.parallel_offset(row_spacing, 'left', 5)
if line_offsetted.geom_type == 'MultiLineString': # if we got multiple lines take the longest
line_offsetted = repair_multiple_parallel_offset_curves(
@@ -192,7 +191,7 @@ def intersect_region_with_grating_line(shape, line, row_spacing, end_row_spacing
if row_spacing > 0 and not isinstance(res, (shapely.geometry.GeometryCollection, shapely.geometry.MultiLineString)):
if (res.is_empty or len(res.coords) == 1):
row_spacing = -row_spacing
- # print("Set to right")
+
line_offsetted = line.parallel_offset(row_spacing, 'left', 5)
if line_offsetted.geom_type == 'MultiLineString': # if we got multiple lines take the longest
line_offsetted = repair_multiple_parallel_offset_curves(
@@ -203,8 +202,7 @@ def intersect_region_with_grating_line(shape, line, row_spacing, end_row_spacing
line_offsetted.coords = line_offsetted.coords[::-1]
line_offsetted = line_offsetted.simplify(0.01, False)
res = line_offsetted.intersection(shape)
- # if res.geom_type != 'LineString':
- # print("HIER!!")
+
return rows