mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 00:09:41 +00:00
fix check in path_cut for cuts at endpoints
This commit is contained in:
parent
0d9d5d8e6d
commit
76e376e28b
1 changed files with 2 additions and 2 deletions
|
@ -798,8 +798,8 @@ function path_cut(path,cutdist,closed) =
|
|||
let(closed=default(closed,false))
|
||||
assert(is_bool(closed))
|
||||
assert(is_vector(cutdist))
|
||||
assert(last(cutdist)<path_length(path,closed=closed),"Cut distances must be smaller than the path length")
|
||||
assert(cutdist[0]>0, "Cut distances must be strictly positive")
|
||||
assert(last(cutdist)<path_length(path,closed=closed)-EPSILON,"Cut distances must be smaller than the path length")
|
||||
assert(cutdist[0]>EPSILON, "Cut distances must be strictly positive")
|
||||
let(
|
||||
cutlist = path_cut_points(path,cutdist,closed=closed)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue