Allow for adjustment to be made to the base
This commit is contained in:
parent
a6b7ba1a82
commit
3c6514e0e4
|
@ -102,7 +102,7 @@ module sprocketed_roller_sprocket_wheel (pos = [0, 0, 0], rot = [0, 0, 0], sproc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module sprocketed_roller_body (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = false, reinforced = false, bolts = false) {
|
module sprocketed_roller_body (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = false, reinforced = false, bolts = false, adjust_base = 0) {
|
||||||
D = (FrameC * sprockets) / PI;
|
D = (FrameC * sprockets) / PI;
|
||||||
LipD = (LipC * sprockets) / PI;
|
LipD = (LipC * sprockets) / PI;
|
||||||
TopD = (TopC * sprockets) / PI;
|
TopD = (TopC * sprockets) / PI;
|
||||||
|
@ -132,20 +132,20 @@ module sprocketed_roller_body (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8,
|
||||||
cylinder(r = R(InnerD), h = InnerH, center = true);
|
cylinder(r = R(InnerD), h = InnerH, center = true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//lip
|
//top lip
|
||||||
translate([0, 0, (TopBaseH / 2) + InnerH + (SprocketBaseH / 2) - (TopBaseH / 2) + (LipH / 2)]) {
|
translate([0, 0, (TopBaseH / 2) + InnerH + (SprocketBaseH / 2) - (TopBaseH / 2) + (LipH / 2)]) {
|
||||||
cylinder(r = R(LipD), h = LipH, center = true);
|
cylinder(r = R(LipD), h = LipH, center = true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//bottom
|
//bottom lip
|
||||||
translate([0, 0, (TopH / 2) + (TopBaseH / 2) + InnerH + (SprocketBaseH / 2) + (TopBaseH / 2) - (LipH / 2)]) {
|
|
||||||
cylinder(r = R(TopD), h = TopH, center = true);
|
|
||||||
}
|
|
||||||
|
|
||||||
//bottom base
|
|
||||||
translate([0, 0, (TopBaseH / 2) + InnerH + (SprocketBaseH / 2)]) {
|
translate([0, 0, (TopBaseH / 2) + InnerH + (SprocketBaseH / 2)]) {
|
||||||
cylinder(r = R(TopBaseD), h = TopBaseH, center = true);
|
cylinder(r = R(TopBaseD), h = TopBaseH, center = true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//base
|
||||||
|
translate([0, 0, (TopH / 2) + (TopBaseH / 2) + InnerH + (SprocketBaseH / 2) + (TopBaseH / 2) - (LipH / 2)]) {
|
||||||
|
cylinder(r = R(TopD + adjust_base), h = TopH, center = true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (reinforced && bolts) {
|
if (reinforced && bolts) {
|
||||||
m3_bolt_void([0, BoltsY/2, 0]);
|
m3_bolt_void([0, BoltsY/2, 0]);
|
||||||
|
@ -154,12 +154,11 @@ module sprocketed_roller_body (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module sprocketed_roller (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = false, reinforced = false, bolts = false, model = "", set_screw_side = true, set_screw_top = false) {
|
module sprocketed_roller (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = false, reinforced = false, bolts = false, model = "", set_screw_side = true, set_screw_top = false, adjust_base = 0) {
|
||||||
D = (FrameC * sprockets) / PI;
|
D = (FrameC * sprockets) / PI;
|
||||||
difference () {
|
difference () {
|
||||||
union () {
|
union () {
|
||||||
sprocketed_roller_body(pos = pos, rot = rot, sprockets = sprockets, bevel = bevel, reinforced = reinforced, bolts = bolts);
|
sprocketed_roller_body(pos = pos, rot = rot, sprockets = sprockets, bevel = bevel, reinforced = reinforced, bolts = bolts, adjust_base = adjust_base);
|
||||||
//translate(pos) rotate(rot) addition();
|
|
||||||
}
|
}
|
||||||
if (model == "gearbox_motor") {
|
if (model == "gearbox_motor") {
|
||||||
translate(pos) rotate(rot) translate([0, 0, 10]) gearbox_motor_shaft_void();
|
translate(pos) rotate(rot) translate([0, 0, 10]) gearbox_motor_shaft_void();
|
||||||
|
|
Loading…
Reference in New Issue