Corrected some uses of ellipse(circum=true,realign=true)

This commit is contained in:
Revar Desmera
2025-09-01 00:26:37 -07:00
parent 235db320d9
commit 71721327b3
3 changed files with 4 additions and 4 deletions

View File

@@ -458,7 +458,7 @@ module _knuckle_hinge_profile(offset, arm_height, arm_angle=45, knuckle_diam=4,
if (is_num(clear_top)) left(.1)fwd(clearance) rect([.1+clear_top, knuckle_diam+1+clearance], anchor=BOT+LEFT);
if (is_def(clip)) fwd(clip) left(.1) rect([offset+knuckle_diam, ofs+round_bot+knuckle_diam+abs(clip)],anchor=BACK+LEFT);
}
right(offset)ellipse(d=knuckle_diam,realign=true,circum=true);
right(offset)ellipse(d=knuckle_diam, circum=true);
}
if (is_num(pin_diam) && pin_diam>0){
$fn = default(pin_fn,$fn);
@@ -466,7 +466,7 @@ module _knuckle_hinge_profile(offset, arm_height, arm_angle=45, knuckle_diam=4,
if (is_def(tearspin)){
teardrop2d(d=pin_diam+2*get_slop(), realign=true, circum=true, spin=tearspin);
}
else ellipse(d=pin_diam+2*get_slop(), realign=true, circum=true);
else ellipse(d=pin_diam+2*get_slop(), circum=true);
}
}
}

View File

@@ -1448,7 +1448,7 @@ function teardrop2d(r, ang=45, cap_h, d, circum=false, realign=false, anchor=CEN
[
cap[0],
p,
each select(fullcircle,i+1,-i-1-(realign?1:0)),
each select(fullcircle,i+1,-i-1-(realign!=circum?1:0)),
xflip(p),
if(_extrapt || !pointycap) xflip(cap[0])
]

View File

@@ -4359,7 +4359,7 @@ function texture(tex, n, border, gap, roughness, inset) =
) [
[
each hex,
each move([0.5,0.5], p=yscale(sc, p=path3d(ellipse(d=1-2*border, circum=true, spin=-30,$fn=6),1))),
each move([0.5,0.5], p=yscale(sc, p=path3d(ellipse(d=1-2*border, circum=true, realign=true, spin=-30,$fn=6),1))),
hex[0]-[0,diag*sc,-1],
for (ang=[270+60,270-60]) hex[1]+yscale(sc, p=cylindrical_to_xyz(diag,ang,1)),
hex[2]-[0,diag*sc,-1],