Fix m3 nut void. TODO: fix magic numbers

This commit is contained in:
Matt McWilliams 2023-05-22 19:19:56 -04:00
parent b3b5c531e4
commit 4482a471bb
1 changed files with 3 additions and 3 deletions

View File

@ -72,9 +72,9 @@ module bearing_laser_void (x, y, z, width= 8, hole = true) {
module m3_nut_void (pos = [0, 0, 0], rot = [0, 0, 0], H = 20) { module m3_nut_void (pos = [0, 0, 0], rot = [0, 0, 0], H = 20) {
translate(pos) rotate(rot) { translate(pos) rotate(rot) {
translate([0, 6, -4.25 + (2.75/2)]) cube([6, 12, 2.75], center = true); translate([0, 6, -5 + (2.75/2)]) cube([6, 12, 3], center = true);
cylinder(r = R(3.25), h = H, center = true, $fn = 30); cylinder(r = R(3.25), h = H, center = true, $fn = 30);
translate([0, 0, -4.25]) hex(6, 2.75); translate([0, 0, -3.75]) hex(6, 3);
translate([0, 0, (H/2)-4.5]) cylinder(r = R(6), h = 5, center = true, $fn = 40); translate([0, 0, (H/2)-4.5]) cylinder(r = R(6), h = 5, center = true, $fn = 40);
} }
} }
@ -189,7 +189,7 @@ module sprocketed_roller_reinforced (pos = [0, 0, 0], rot = [0, 0, 0], sprockets
} }
LIBRARY = false; LIBRARY = false;
PART = "sprocketed_roller_reinforced_8"; PART = "sprocketed_roller_reinforced";
if (!LIBRARY && PART == "sprocketed_roller_reinforced") { if (!LIBRARY && PART == "sprocketed_roller_reinforced") {
rotate([180, 0, 0]) sprocketed_roller(sprockets = 18, bevel = false, model = "gearbox_motor", reinforced = true, bolts = true, set_screw_top = true, set_screw_side = true); rotate([180, 0, 0]) sprocketed_roller(sprockets = 18, bevel = false, model = "gearbox_motor", reinforced = true, bolts = true, set_screw_top = true, set_screw_side = true);
} else if (!LIBRARY && PART == "sprocketed_roller_reinforced_8") { } else if (!LIBRARY && PART == "sprocketed_roller_reinforced_8") {