From 8a1f70a6cdcbf7c599d9f00837996a0f6734f780 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Mon, 2 May 2022 14:41:34 -0400 Subject: remove sample_linestring and point_transfer --- lib/stitches/tangential_fill_stitch_pattern_creator.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'lib/stitches/tangential_fill_stitch_pattern_creator.py') diff --git a/lib/stitches/tangential_fill_stitch_pattern_creator.py b/lib/stitches/tangential_fill_stitch_pattern_creator.py index 4abe498d..0ee1c031 100644 --- a/lib/stitches/tangential_fill_stitch_pattern_creator.py +++ b/lib/stitches/tangential_fill_stitch_pattern_creator.py @@ -10,7 +10,6 @@ from .running_stitch import running_stitch from ..debug import debug from ..stitches import constants -from ..stitches import sample_linestring from ..stitch_plan import Stitch from ..utils.geometry import cut, roll_linear_ring, reverse_line_string @@ -109,23 +108,6 @@ def create_nearest_points_list( return children_nearest_points -def calculate_replacing_middle_point(line_segment, abs_offset, max_stitch_distance): - """ - Takes a line segment (consisting of 3 points!) - and calculates a new middle point if the line_segment is - straight enough to be resampled by points max_stitch_distance apart FROM THE END OF line_segment. - Returns None if the middle point is not needed. - """ - angles = sample_linestring.calculate_line_angles(line_segment) - if angles[1] < abs_offset * constants.limiting_angle_straight: - if line_segment.length < max_stitch_distance: - return None - else: - return line_segment.interpolate(line_segment.length - max_stitch_distance).coords[0] - else: - return line_segment.coords[1] - - @debug.time def connect_raster_tree_from_inner_to_outer(tree, node, offset, stitch_distance, min_stitch_distance, starting_point, offset_by_half): # noqa: C901 -- cgit v1.2.3