summaryrefslogtreecommitdiff
path: root/lib/stitches/ConnectAndSamplePattern.py
diff options
context:
space:
mode:
authorAndreas <v.andreas.1@web.de>2021-11-24 19:05:20 +0100
committerKaalleen <reni@allenka.de>2022-05-04 18:59:11 +0200
commitb5c7f637c14beaf9ba075c0c4445fbd3541a8270 (patch)
tree3a39194e1943212bbbfa144ebe9262a55f3cc12c /lib/stitches/ConnectAndSamplePattern.py
parentd445b38629a902f6c13565a83ed81a91b6458480 (diff)
minor changes
Diffstat (limited to 'lib/stitches/ConnectAndSamplePattern.py')
-rw-r--r--lib/stitches/ConnectAndSamplePattern.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/stitches/ConnectAndSamplePattern.py b/lib/stitches/ConnectAndSamplePattern.py
index 2410f3ca..2c538e5d 100644
--- a/lib/stitches/ConnectAndSamplePattern.py
+++ b/lib/stitches/ConnectAndSamplePattern.py
@@ -877,11 +877,13 @@ def connect_raster_tree_spiral(
part_spiral = interpolate_LinearRings(
ring1, ring2, starting_point)
+ node.val = part_spiral
+ for node in PreOrderIter(tree, stop=lambda n: n.is_leaf):
(own_coords, own_coords_origin) = LineStringSampling.raster_line_string_with_priority_points(
- part_spiral,
+ node.val,
0,
- part_spiral.length,
+ node.val.length,
stitch_distance,
node.transferred_point_priority_deque,
abs_offset,
@@ -890,7 +892,7 @@ def connect_raster_tree_spiral(
PointTransfer.transfer_points_to_surrounding(
node,
- used_offset,
+ -used_offset,
offset_by_half,
own_coords,
own_coords_origin,
@@ -905,7 +907,7 @@ def connect_raster_tree_spiral(
if offset_by_half:
PointTransfer.transfer_points_to_surrounding(
node,
- used_offset,
+ -used_offset,
False,
own_coords,
own_coords_origin,