diff options
| author | Lex Neva <github.com@lexneva.name> | 2022-04-06 08:12:45 -0400 |
|---|---|---|
| committer | Kaalleen <reni@allenka.de> | 2022-05-04 19:18:33 +0200 |
| commit | 920063b324fd59798bc462c644bce8fc543f535b (patch) | |
| tree | e2b9310b51ad417a151f36580d1da1bab611be4a /lib/stitches/tangential_fill_stitch_pattern_creator.py | |
| parent | f4c47a8e226af11852e2e530c9b4a6a6403bff07 (diff) | |
fix style
Diffstat (limited to 'lib/stitches/tangential_fill_stitch_pattern_creator.py')
| -rw-r--r-- | lib/stitches/tangential_fill_stitch_pattern_creator.py | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/lib/stitches/tangential_fill_stitch_pattern_creator.py b/lib/stitches/tangential_fill_stitch_pattern_creator.py index 95143bce..13a480e3 100644 --- a/lib/stitches/tangential_fill_stitch_pattern_creator.py +++ b/lib/stitches/tangential_fill_stitch_pattern_creator.py @@ -1,16 +1,18 @@ -from shapely.geometry.polygon import LineString, LinearRing -from shapely.geometry import Point, MultiPoint -from shapely.ops import nearest_points +import math from collections import namedtuple -from depq import DEPQ -import trimesh + import numpy as np -from scipy import spatial -import math +import trimesh from anytree import PreOrderIter -from ..stitches import sample_linestring -from ..stitches import point_transfer +from depq import DEPQ +from scipy import spatial +from shapely.geometry import MultiPoint, Point +from shapely.geometry.polygon import LineString, LinearRing +from shapely.ops import nearest_points + from ..stitches import constants +from ..stitches import point_transfer +from ..stitches import sample_linestring nearest_neighbor_tuple = namedtuple( "nearest_neighbor_tuple", @@ -889,8 +891,15 @@ def connect_raster_tree_spiral( lineseg = LineString([result_coords[-2], result_coords[-1], own_coords[0], own_coords[1]]) else: lineseg = LineString([result_coords[-2], result_coords[-1], own_coords[1]]) - (temp_coords, _) = sample_linestring.raster_line_string_with_priority_points(lineseg, 0, lineseg.length, stitch_distance, min_stitch_distance, - DEPQ(), abs_offset, offset_by_half, False) + (temp_coords, _) = sample_linestring.raster_line_string_with_priority_points(lineseg, + 0, + lineseg.length, + stitch_distance, + min_stitch_distance, + DEPQ(), + abs_offset, + offset_by_half, + False) if len(temp_coords) == 2: # only start and end point of lineseg was needed result_coords.pop() result_coords_origin.pop() |
