mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
bug fix
This commit is contained in:
parent
a8683eab65
commit
5b66ad2cc2
1 changed files with 1399 additions and 1398 deletions
|
@ -1013,7 +1013,8 @@ function offset(
|
|||
// floor is important here to ensure we don't generate extra segments when nearly straight paths expand outward
|
||||
: let(vang = vector_angle(select(goodsegs,i-1)[1]-goodpath[i],
|
||||
goodsegs[i][0]-goodpath[i]))
|
||||
assert(vang!=0,"Offset computation failed, probably because validity check mistakenly removed a valid segment. Increasing quality might fix this.")
|
||||
assert(!outsidecorner[i] || vang!=0, // If outsidecorner[i] is true then vang>0 needed to give valid step count
|
||||
"Offset computation failed, probably because validity check mistakenly removed a valid segment. Increasing quality might fix this.")
|
||||
1+floor(segs(r)*vang/360)
|
||||
],
|
||||
// newcorners is a list where each entry is a list of the points that correspond to a single point in the sharpcorners
|
||||
|
|
Loading…
Reference in a new issue