mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 00:09:41 +00:00
Fixed bug in path_merge_collinear()
This commit is contained in:
parent
d5a01a151d
commit
e6c1afcece
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ function path_merge_collinear(path, closed, eps=EPSILON) =
|
||||||
assert( is_path(path), "Invalid path in path_merge_collinear." )
|
assert( is_path(path), "Invalid path in path_merge_collinear." )
|
||||||
assert( is_undef(eps) || (is_finite(eps) && (eps>=0) ), "Invalid tolerance." )
|
assert( is_undef(eps) || (is_finite(eps) && (eps>=0) ), "Invalid tolerance." )
|
||||||
len(path)<=2 ? path :
|
len(path)<=2 ? path :
|
||||||
|
let(path = deduplicate(path, closed=closed))
|
||||||
[
|
[
|
||||||
if(!closed) path[0],
|
if(!closed) path[0],
|
||||||
for(triple=triplet(path,wrap=closed))
|
for(triple=triplet(path,wrap=closed))
|
||||||
|
|
Loading…
Reference in a new issue