Remove Duplicate Code
bobbin.scad had code from core.
This commit is contained in:
16
bobbin.scad
16
bobbin.scad
@@ -9,7 +9,6 @@ use <./legs.scad>
|
|||||||
|
|
||||||
LegLength=30.40;
|
LegLength=30.40;
|
||||||
LegDiameter=16;
|
LegDiameter=16;
|
||||||
BoltDiameter=7.06;
|
|
||||||
CoreGap=0;
|
CoreGap=0;
|
||||||
NumberCoils=10;
|
NumberCoils=10;
|
||||||
YokeHeight = 12.14;
|
YokeHeight = 12.14;
|
||||||
@@ -29,21 +28,6 @@ $fa= ($preview) ? $fa : render_fa;
|
|||||||
// Bobbin
|
// Bobbin
|
||||||
Bobbin_Length=LegLength+CoreGap/2;
|
Bobbin_Length=LegLength+CoreGap/2;
|
||||||
|
|
||||||
module core_leg(d=LegDiameter, l=LegLength, bd=BoltDiameter) {
|
|
||||||
difference() {
|
|
||||||
cylinder(d=d, h=l);
|
|
||||||
down(1) left(d/2) cylinder(d=bd, h=l+2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module core_uy1658(ld=16, ll=29, bz=12.14, w=60) {
|
|
||||||
echo("Leg Len:", ll-bz);
|
|
||||||
xflip_copy() {
|
|
||||||
left(w/2) core_leg(d=ld, l=ll);
|
|
||||||
fwd(ld/2) cube([w/2,16,bz]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module bobbin_joiners(ld=LegDiameter, ll=LegLength, lb=12.14, tg=CoreGap, lc=.15, t=.4, sn=NumberCoils+1, st=.6, sd=50, plug=true, clear=false) {
|
module bobbin_joiners(ld=LegDiameter, ll=LegLength, lb=12.14, tg=CoreGap, lc=.15, t=.4, sn=NumberCoils+1, st=.6, sd=50, plug=true, clear=false) {
|
||||||
bl=2*(ll-lb) + tg;
|
bl=2*(ll-lb) + tg;
|
||||||
conThick = 12;
|
conThick = 12;
|
||||||
|
|||||||
Reference in New Issue
Block a user