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

@ -319,7 +319,6 @@ module _knuckle_hinge_profile(offset, arm_height, arm_angle=45, knuckle_diam=4,
ofs = arm_height+offset/tan(arm_angle);
start=round_bot==0 && round_top==0 ? os_flat(abs_angle=90)
: os_round(abs_angle=90, cut=[-round_top,-round_bot],k=.8);
f=echo(clearance=clearance);
back(clearance)
difference(){
union(){

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();
}