mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Fix bug in offset() where degenerate cases with closed=false give
wrong error message (paralellcheck)
This commit is contained in:
parent
9d55a7b6bf
commit
8dc288b62c
@ -845,7 +845,7 @@ function offset(
|
|||||||
goodsegs = bselect(shiftsegs, good),
|
goodsegs = bselect(shiftsegs, good),
|
||||||
goodpath = bselect(path,good)
|
goodpath = bselect(path,good)
|
||||||
)
|
)
|
||||||
assert(len(goodsegs)>0,"Offset of path is degenerate")
|
assert(len(goodsegs)-(!closed && select(good,-1)?1:0)>0,"Offset of path is degenerate")
|
||||||
let(
|
let(
|
||||||
// Extend the shifted segments to their intersection points
|
// Extend the shifted segments to their intersection points
|
||||||
sharpcorners = [for(i=[0:len(goodsegs)-1]) _segment_extension(select(goodsegs,i-1), select(goodsegs,i))],
|
sharpcorners = [for(i=[0:len(goodsegs)-1]) _segment_extension(select(goodsegs,i-1), select(goodsegs,i))],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user