summaryrefslogtreecommitdiff
path: root/lib/stitches/PointTransfer.py
diff options
context:
space:
mode:
authorAndreas <v.andreas.1@web.de>2021-11-21 12:44:06 +0100
committerKaalleen <reni@allenka.de>2022-05-04 18:59:11 +0200
commitd445b38629a902f6c13565a83ed81a91b6458480 (patch)
treede830884bccc485d7eaed0f74b4545ae1df49e9a /lib/stitches/PointTransfer.py
parent8966fa1919df5c2070cebebd080b54a56c7001b1 (diff)
bug fixing+first spiral implementation
Diffstat (limited to 'lib/stitches/PointTransfer.py')
-rw-r--r--lib/stitches/PointTransfer.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/stitches/PointTransfer.py b/lib/stitches/PointTransfer.py
index da73aea0..b6e4e026 100644
--- a/lib/stitches/PointTransfer.py
+++ b/lib/stitches/PointTransfer.py
@@ -9,12 +9,13 @@ from ..stitches import LineStringSampling
projected_point_tuple = namedtuple(
'projected_point_tuple', ['point', 'point_source'])
-# Calculated the nearest interserction point of "bisectorline" with the coordinates of child (child.val).
-# It returns the intersection point and its distance along the coordinates of the child or "None, None" if no
-# intersection was found.
-
def calc_transferred_point(bisectorline, child):
+ """
+ Calculates the nearest interserction point of "bisectorline" with the coordinates of child (child.val).
+ It returns the intersection point and its distance along the coordinates of the child or "None, None" if no
+ intersection was found.
+ """
result = bisectorline.intersection(child.val)
if result.is_empty:
return None, None
@@ -279,11 +280,10 @@ def transfer_points_to_surrounding(treenode, used_offset, offset_by_half, to_tra
assert(len(point_list) == len(point_source_list))
-# Calculated the nearest interserction point of "bisectorline" with the coordinates of child.
+
+# Calculates the nearest interserction point of "bisectorline" with the coordinates of child.
# It returns the intersection point and its distance along the coordinates of the child or "None, None" if no
# intersection was found.
-
-
def calc_transferred_point_graph(bisectorline, edge_geometry):
result = bisectorline.intersection(edge_geometry)
if result.is_empty: