minor cleanup

This commit is contained in:
Adrian Mariano 2023-11-16 19:41:11 -05:00
parent 1b0653a8a4
commit 56a883ed8f

View file

@ -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]]),