mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
better error handling in offset_stroke for invalid end treatment
This commit is contained in:
parent
d205380c12
commit
33442c4230
1 changed files with 2 additions and 1 deletions
|
@ -1203,7 +1203,8 @@ function _stroke_end(width,left, right, spec) =
|
||||||
rightdelete = intright? pathcutright[1] + pathclip[1] -1 : pathcutright[1],
|
rightdelete = intright? pathcutright[1] + pathclip[1] -1 : pathcutright[1],
|
||||||
leftcorner = line_intersection([pathcutleft[0], newleft[pathcutleft[1]]], [newright[0],newleft[0]]),
|
leftcorner = line_intersection([pathcutleft[0], newleft[pathcutleft[1]]], [newright[0],newleft[0]]),
|
||||||
rightcorner = line_intersection([pathcutright[0], newright[pathcutright[1]]], [newright[0],newleft[0]]),
|
rightcorner = line_intersection([pathcutright[0], newright[pathcutright[1]]], [newright[0],newleft[0]]),
|
||||||
roundover_fits = jointleft+jointright < norm(rightcorner-leftcorner)
|
roundover_fits = is_def(rightcorner) && is_def(leftcorner) &&
|
||||||
|
jointleft+jointright < norm(rightcorner-leftcorner)
|
||||||
)
|
)
|
||||||
assert(roundover_fits,"Roundover too large to fit")
|
assert(roundover_fits,"Roundover too large to fit")
|
||||||
let(
|
let(
|
||||||
|
|
Loading…
Reference in a new issue