Added check for repeated end points to path_sweep

This commit is contained in:
Adrian Mariano 2020-05-15 17:27:55 -04:00
parent 780211a357
commit 320b53326d

View file

@ -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 :