mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Added check for repeated end points to path_sweep
This commit is contained in:
parent
780211a357
commit
320b53326d
1 changed files with 1 additions and 0 deletions
|
@ -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 :
|
||||
|
|
Loading…
Reference in a new issue