mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
minor cleanup
This commit is contained in:
parent
1b0653a8a4
commit
56a883ed8f
1 changed files with 1 additions and 3 deletions
|
@ -1021,15 +1021,13 @@ function offset(
|
||||||
|| !outsidecorner[i] // Don't round inside corners
|
|| !outsidecorner[i] // Don't round inside corners
|
||||||
|| (!closed && (i==0 || i==len(goodsegs)-1)) // Don't round ends of an open path
|
|| (!closed && (i==0 || i==len(goodsegs)-1)) // Don't round ends of an open path
|
||||||
? (is_def(sharpcorners[i]) ? [sharpcorners[i]] : basepts)
|
? (is_def(sharpcorners[i]) ? [sharpcorners[i]] : basepts)
|
||||||
: chamfer //&& is_def(sharpcorners[i])
|
: chamfer ? _offset_chamfer(
|
||||||
? _offset_chamfer(
|
|
||||||
goodpath[i], [
|
goodpath[i], [
|
||||||
select(goodsegs,i-1)[1],
|
select(goodsegs,i-1)[1],
|
||||||
sharpcorners[i],
|
sharpcorners[i],
|
||||||
goodsegs[i][0]
|
goodsegs[i][0]
|
||||||
], d
|
], d
|
||||||
)
|
)
|
||||||
: chamfer ? basepts
|
|
||||||
: // rounded case
|
: // rounded case
|
||||||
let(
|
let(
|
||||||
class =_tri_class( [ each select(goodsegs,i-1), goodsegs[i][0]]),
|
class =_tri_class( [ each select(goodsegs,i-1), goodsegs[i][0]]),
|
||||||
|
|
Loading…
Reference in a new issue