From 0260d92187e93d43ef6c949f7605bb93325a7dd2 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Sun, 19 Sep 2021 20:08:38 -0700 Subject: [PATCH] Correction for _path_cut_points() rename. --- distributors.scad | 2 +- paths.scad | 4 ++-- rounding.scad | 8 ++++---- shapes3d.scad | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/distributors.scad b/distributors.scad index 5e08d37..11058cb 100644 --- a/distributors.scad +++ b/distributors.scad @@ -946,7 +946,7 @@ module path_spread(path, n, spacing, sp=undef, rotate_children=true, closed=fals ); distOK = is_def(n) || (min(distances)>=0 && max(distances)<=length); assert(distOK,"Cannot fit all of the copies"); - cutlist = path_cut_points(path, distances, closed, direction=true); + cutlist = _path_cut_points(path, distances, closed, direction=true); planar = len(path[0])==2; if (true) for(i=[0:1:len(cutlist)-1]) { $pos = cutlist[i][0]; diff --git a/paths.scad b/paths.scad index efa07ad..83b301b 100644 --- a/paths.scad +++ b/paths.scad @@ -757,8 +757,8 @@ function _assemble_path_fragments(fragments, eps=EPSILON, _finished=[]) = /// Cuts a path at a list of distances from the first point in the path. Returns a list of the cut /// points and indices of the next point in the path after that point. So for example, a return /// value entry of [[2,3], 5] means that the cut point was [2,3] and the next point on the path after -/// this point is path[5]. If the path is too short then path_cut_points returns undef. If you set -/// `direction` to true then `path_cut_points` will also return the tangent vector to the path and a normal +/// this point is path[5]. If the path is too short then _path_cut_points returns undef. If you set +/// `direction` to true then `_path_cut_points` will also return the tangent vector to the path and a normal /// vector to the path. It tries to find a normal vector that is coplanar to the path near the cut /// point. If this fails it will return a normal vector parallel to the xy plane. The output with /// direction vectors will be `[point, next_index, tangent, normal]`. diff --git a/rounding.scad b/rounding.scad index 45555da..154b218 100644 --- a/rounding.scad +++ b/rounding.scad @@ -649,8 +649,8 @@ function _path_join(paths,joint,k=0.5,i=0,result=[],relocate=true,closed=false) assert(d_first