mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
minor cleanup
This commit is contained in:
parent
1b0653a8a4
commit
56a883ed8f
@ -1021,15 +1021,13 @@ function offset(
|
||||
|| !outsidecorner[i] // Don't round inside corners
|
||||
|| (!closed && (i==0 || i==len(goodsegs)-1)) // Don't round ends of an open path
|
||||
? (is_def(sharpcorners[i]) ? [sharpcorners[i]] : basepts)
|
||||
: chamfer //&& is_def(sharpcorners[i])
|
||||
? _offset_chamfer(
|
||||
: chamfer ? _offset_chamfer(
|
||||
goodpath[i], [
|
||||
select(goodsegs,i-1)[1],
|
||||
sharpcorners[i],
|
||||
goodsegs[i][0]
|
||||
], d
|
||||
)
|
||||
: chamfer ? basepts
|
||||
: // rounded case
|
||||
let(
|
||||
class =_tri_class( [ each select(goodsegs,i-1), goodsegs[i][0]]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user