mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Added check for repeated end points to path_sweep
This commit is contained in:
parent
780211a357
commit
320b53326d
@ -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…
x
Reference in New Issue
Block a user