From d445b38629a902f6c13565a83ed81a91b6458480 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sun, 21 Nov 2021 12:44:06 +0100 Subject: bug fixing+first spiral implementation --- lib/stitches/PointTransfer.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/stitches/PointTransfer.py') 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: -- cgit v1.2.3