From 5fb0335fa368e27b09ca60456414106db02fc7f8 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Sat, 1 Jan 2022 13:50:16 -0500 Subject: [PATCH] fix path_chamfer_and_rounding to accept 1-regions and check that input is a path --- paths.scad | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/paths.scad b/paths.scad index 70e6158..40becf1 100644 --- a/paths.scad +++ b/paths.scad @@ -727,7 +727,11 @@ function path_torsion(path, closed=false) = // stroke(path2, closed=true); function path_chamfer_and_rounding(path, closed=true, chamfer, rounding) = let ( - path = deduplicate(path,closed=true), + p = force_path(path) + ) + assert(is_path(p),"Input 'path' is not a path") + let( + path = deduplicate(p,closed=true), lp = len(path), chamfer = is_undef(chamfer)? repeat(0,lp) : is_vector(chamfer)? list_pad(chamfer,lp,0) :