fix anchors for offset_sweep

This commit is contained in:
Adrian Mariano
2024-02-15 18:32:17 -05:00
parent a23d5b266f
commit 9e6b49ad3b
2 changed files with 2 additions and 3 deletions

View File

@@ -1251,14 +1251,14 @@ function _path_line_intersection(path, line, ind=0) =
_path_line_intersection(path, line, ind+1);
module offset_stroke(path, width=1, rounded=true, start, end, check_valid=true, quality=1, chamfer=false, closed=false,
atype="hull", anchor, spin, cp="centroid")
atype="hull", anchor="origin", spin, cp="centroid")
{
result = offset_stroke(
path, width=width, rounded=rounded,
start=start, end=end,
check_valid=check_valid, quality=quality,
chamfer=chamfer,
closed=closed
closed=closed,anchor="origin"
);
region(result,atype=atype, anchor=anchor, spin=spin, cp=cp) children();
}