From 805ee02964f00492b651567ae957cd68b20e5048 Mon Sep 17 00:00:00 2001 From: Alex Matulich <anachronist@gmail.com> Date: Sun, 26 Jan 2025 09:51:52 -0800 Subject: [PATCH] further refinement to error check in _bez_path_corner --- beziers.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beziers.scad b/beziers.scad index 5317abf..56a48fe 100644 --- a/beziers.scad +++ b/beziers.scad @@ -707,7 +707,7 @@ function path_to_bezcornerpath(path, closed, size, relsize) = /// relative = if true, curvesize is a proportion between 0 and 1. If false, curvesize is an absolute distance that gets converted to a proportion internally. function _bez_path_corner(p, curvesize, relative, mincurvesize=0.001) = is_collinear(p) -? lerpn(p[0], p[2], 6) +? lerpn(p[0], lerp(p[0],p[2],5/6), 6) : let( p1 = p[0], p2 = p[1], p3 = p[2], a0 = 0.5*vector_angle(p1, p2, p3),