offset_sweep "extra" bugfix

This commit is contained in:
Adrian Mariano 2023-09-03 22:19:29 -04:00
parent 401cdce913
commit 44fea4047e

View file

@ -591,8 +591,7 @@ function _rounding_offsets(edgespec,z_dir=1) =
_bezcorner([[0,0],[0,z_dir*abs(joint)],[-joint,z_dir*abs(joint)]], k, $fn=N+2)
)
)
quant(extra > 0? concat(offsets, [last(offsets)+[0,z_dir*extra]]) : offsets, 1/1024);
quant(extra > 0 && len(offsets)>0 ? concat(offsets, [last(offsets)+[0,z_dir*extra]]) : offsets, 1/1024);