parameter passing bug fix for offset_sweep

This commit is contained in:
Adrian Mariano 2020-09-14 16:48:42 -04:00
parent 7d6fca27a6
commit 4ba8670a55

View file

@ -731,6 +731,7 @@ function offset_sweep(
["k", k],
["points", []],
],
afda=echo(extra=struct_val(argspec,"extra")),
path = check_and_fix_path(path, [2], closed=true),
clockwise = polygon_is_clockwise(path),
@ -804,8 +805,8 @@ module offset_sweep(path, height, h, l,
convexity=10,anchor="origin",cp,
spin=0, orient=UP, extent=false)
{
vnf = offset_sweep(path=path, height=height, h=h, l=l, top=top, bottom=bottom, offset=offset, r=0, steps=steps,
quality=quality, check_valid=true, offset_maxstep=1, extra=0, cut=cut, chamfer_width=chamfer_width,
vnf = offset_sweep(path=path, height=height, h=h, l=l, top=top, bottom=bottom, offset=offset, r=r, steps=steps,
quality=quality, check_valid=true, offset_maxstep=offset_maxstep, extra=extra, cut=cut, chamfer_width=chamfer_width,
chamfer_height=chamfer_height, joint=joint, k=k, angle=angle);
attachable(anchor=anchor, spin=spin, orient=orient, vnf=vnf, extent=extent, cp=is_def(cp) ? cp : vnf_centroid(vnf))