From 60fb7d0a9efa43d3b58867927ecede6cfdc5ab21 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Mon, 2 May 2022 14:47:43 -0400 Subject: fix more shapely deprecations --- lib/stitches/tangential_fill_stitch_pattern_creator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 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 0ee1c031..20f7a651 100644 --- a/lib/stitches/tangential_fill_stitch_pattern_creator.py +++ b/lib/stitches/tangential_fill_stitch_pattern_creator.py @@ -250,8 +250,8 @@ def interpolate_linear_rings(ring1, ring2, max_stitch_length, start=None): # orders of magnitude faster because we're not building and querying a KDTree. num_points = int(20 * ring1.length / max_stitch_length) - ring1_resampled = trimesh.path.traversal.resample_path(ring1, count=num_points) - ring2_resampled = trimesh.path.traversal.resample_path(ring2, count=num_points) + ring1_resampled = trimesh.path.traversal.resample_path(np.array(ring1.coords), count=num_points) + ring2_resampled = trimesh.path.traversal.resample_path(np.array(ring2.coords), count=num_points) if start is not None: ring1_resampled = reorder_linear_ring(ring1_resampled, start) -- cgit v1.2.3