From 539d612b3cd1169e8636d7c83db9fe25d29229ab Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Tue, 9 Mar 2021 06:39:28 -0500 Subject: [PATCH] bug fix --- paths.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paths.scad b/paths.scad index 495f656..844c0dd 100644 --- a/paths.scad +++ b/paths.scad @@ -1273,7 +1273,7 @@ function _path_cut_points(path, dists, closed=false, pind=0, dtotal=0, dind=0, r let( lastpt = len(result)==0? [] : select(result,-1)[0], // location of last cut point dpartial = len(result)==0? 0 : norm(lastpt-select(path,pind)), // remaining length in segment - nextpoint = dists[dind] <= dpartial+dtotal // Do we have enough length left on the current segment? + nextpoint = dists[dind] < dpartial+dtotal // Do we have enough length left on the current segment? ? [lerp(lastpt,select(path,pind),(dists[dind]-dtotal)/dpartial),pind] : _path_cut_single(path, dists[dind]-dtotal-dpartial, closed, pind) )