From 320b53326da71632ce584c43f7af29f947e0a459 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Fri, 15 May 2020 17:27:55 -0400 Subject: [PATCH] Added check for repeated end points to path_sweep --- skin.scad | 1 + 1 file changed, 1 insertion(+) diff --git a/skin.scad b/skin.scad index 269d840..2dffad8 100644 --- a/skin.scad +++ b/skin.scad @@ -1136,6 +1136,7 @@ function path_sweep(shape, path, method="incremental", normal, closed=false, twi assert(is_integer(symmetry) && symmetry>0, "symmetry must be a positive integer") assert(is_path(shape,2), "shape must be a 2d path") assert(is_path(path), "input path is not a path") + assert(!closed || !approx(path[0],select(path,-1)), "Closed path includes start point at the end") let( path = path3d(path), caps = is_def(caps) ? caps :