summaryrefslogtreecommitdiff
path: root/lib/stitches/point_transfer.py
diff options
context:
space:
mode:
authorAndreas <v.andreas.1@web.de>2022-03-20 17:15:39 +0100
committerKaalleen <reni@allenka.de>2022-05-04 19:18:33 +0200
commit6916a3371695205ca388daa37e3b9a0cc8d51de6 (patch)
tree199c5851efb7b8149a1eef068382b355fa142c18 /lib/stitches/point_transfer.py
parent78e0648f99477ab2b8961c1875e8d2fe2381570e (diff)
bug fixing + introduction of min_stitch_distance parameter
Diffstat (limited to 'lib/stitches/point_transfer.py')
-rw-r--r--lib/stitches/point_transfer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stitches/point_transfer.py b/lib/stitches/point_transfer.py
index cf4597dd..5506324d 100644
--- a/lib/stitches/point_transfer.py
+++ b/lib/stitches/point_transfer.py
@@ -70,7 +70,7 @@ def transfer_points_to_surrounding(treenode, used_offset, offset_by_half, to_tra
assert(not transfer_forbidden_points or transfer_forbidden_points and (
offset_by_half or not offset_by_half and overnext_neighbor))
- if len(to_transfer_points) == 0:
+ if len(to_transfer_points) < 3:
return
# Get a list of all possible adjacent nodes which will be considered for transferring the points of treenode: