summaryrefslogtreecommitdiff
path: root/lib/stitches/tangential_fill_stitch_pattern_creator.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2022-05-02 14:41:34 -0400
committerKaalleen <reni@allenka.de>2022-05-04 19:18:33 +0200
commit8a1f70a6cdcbf7c599d9f00837996a0f6734f780 (patch)
tree83e17e0b8fea8a77895dc727b4577fafaa2f03a5 /lib/stitches/tangential_fill_stitch_pattern_creator.py
parentbd8cb0d1ff2ce1f17ed8d3a5eaca19f8e8652ad0 (diff)
remove sample_linestring and point_transfer
Diffstat (limited to 'lib/stitches/tangential_fill_stitch_pattern_creator.py')
-rw-r--r--lib/stitches/tangential_fill_stitch_pattern_creator.py18
1 files changed, 0 insertions, 18 deletions
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