mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-09-25 15:09:24 +02:00
Corrected some uses of ellipse(circum=true,realign=true)
This commit is contained in:
@@ -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_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);
|
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){
|
if (is_num(pin_diam) && pin_diam>0){
|
||||||
$fn = default(pin_fn,$fn);
|
$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)){
|
if (is_def(tearspin)){
|
||||||
teardrop2d(d=pin_diam+2*get_slop(), realign=true, circum=true, spin=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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1448,7 +1448,7 @@ function teardrop2d(r, ang=45, cap_h, d, circum=false, realign=false, anchor=CEN
|
|||||||
[
|
[
|
||||||
cap[0],
|
cap[0],
|
||||||
p,
|
p,
|
||||||
each select(fullcircle,i+1,-i-1-(realign?1:0)),
|
each select(fullcircle,i+1,-i-1-(realign!=circum?1:0)),
|
||||||
xflip(p),
|
xflip(p),
|
||||||
if(_extrapt || !pointycap) xflip(cap[0])
|
if(_extrapt || !pointycap) xflip(cap[0])
|
||||||
]
|
]
|
||||||
|
@@ -4359,7 +4359,7 @@ function texture(tex, n, border, gap, roughness, inset) =
|
|||||||
) [
|
) [
|
||||||
[
|
[
|
||||||
each hex,
|
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],
|
hex[0]-[0,diag*sc,-1],
|
||||||
for (ang=[270+60,270-60]) hex[1]+yscale(sc, p=cylindrical_to_xyz(diag,ang,1)),
|
for (ang=[270+60,270-60]) hex[1]+yscale(sc, p=cylindrical_to_xyz(diag,ang,1)),
|
||||||
hex[2]-[0,diag*sc,-1],
|
hex[2]-[0,diag*sc,-1],
|
||||||
|
Reference in New Issue
Block a user