path_cut_points name fix

This commit is contained in:
Adrian Mariano 2021-09-18 22:27:55 -04:00
parent 9ca77eed1b
commit 7c052eff19
2 changed files with 2 additions and 2 deletions

View file

@ -251,7 +251,7 @@ module stroke(
translate(path[0]) sphere(d=width[0]);
}
} else {
pathcut = path_cut_points(path, [trim1, path_length(path)-trim2], closed=false);
pathcut = _path_cut_points(path, [trim1, path_length(path)-trim2], closed=false);
pathcut_su = _cut_to_seg_u_form(pathcut,path);
path2 = _path_cut_getpaths(path, pathcut, closed=false)[1];
widths = _path_select(width, pathcut_su[0][0], pathcut_su[0][1], pathcut_su[1][0], pathcut_su[1][1]);

View file

@ -2148,7 +2148,7 @@ module path_text(path, text, font, size, thickness, lettersize, offset=0, revers
dummy1 = assert(sum(lsize)<=path_length(path),"Path is too short for the text");
pts = path_cut_points(path, add_scalar([0, each cumsum(lsize)],lsize[0]/2), direction=true);
pts = _path_cut_points(path, add_scalar([0, each cumsum(lsize)],lsize[0]/2), direction=true);
usernorm = is_def(normal);
usetop = is_def(top);