Fix bolts, nuts and bevels
This commit is contained in:
parent
4482a471bb
commit
b4ea887d58
|
@ -37,8 +37,8 @@ module sprocket (pos = [0, 0, 0], rot = [0, 0, 0], bevel = false) {
|
|||
translate([0, 0, 0]) scale([1, 1, 2.25]) rotate([90, 0, 90]) cylinder(r = SprocketW/2, h = SprocketL, center = true);
|
||||
translate([0, 0, -1]) cube([2, 2, 2], center = true);
|
||||
if (bevel) {
|
||||
translate([1.5, 0, 0]) rotate([0, -5, 0]) cube([2, 2, 3], center = true);
|
||||
translate([-1.5, 0, 0]) rotate([0, 5, 0]) cube([2, 2, 3], center = true);
|
||||
translate([1.75, 0, 0]) rotate([0, -8, 0]) cube([2, 2, 3], center = true);
|
||||
translate([-1.75, 0, 0]) rotate([0, 8, 0]) cube([2, 2, 3], center = true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ module sprocketed_roller (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel
|
|||
|
||||
}
|
||||
|
||||
module sprocketed_roller_reinforced (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = true, model = "", bolts = true) {
|
||||
module sprocketed_roller_reinforced (pos = [0, 0, 0], rot = [0, 0, 0], sprockets = 8, bevel = true, model = "", bolts = false, nuts = false) {
|
||||
D = (FrameC * sprockets) / PI;
|
||||
InnerD = D - 5.07;
|
||||
ReinforcedRegistration = (InnerD - 5) / 2;
|
||||
|
@ -181,19 +181,25 @@ module sprocketed_roller_reinforced (pos = [0, 0, 0], rot = [0, 0, 0], sprockets
|
|||
difference () {
|
||||
sprocketed_roller_sprocket_wheel (pos = pos, rot = rot, sprockets = sprockets, D = D, bevel = bevel);
|
||||
scale([1.01, 1.01, 1]) sprocketed_roller (pos = pos, rot = rot, sprockets = sprockets, bevel = bevel, reinforced = true, model = model);
|
||||
if (bolts) {
|
||||
sprocketed_wheel_m3_nut_void([0, BoltsY/2, -4]);
|
||||
sprocketed_wheel_m3_nut_void([0, -BoltsY/2, -4]);
|
||||
if (nuts) {
|
||||
sprocketed_wheel_m3_nut_void([0, BoltsY/2, -2]);
|
||||
sprocketed_wheel_m3_nut_void([0, -BoltsY/2, -2]);
|
||||
} else if (bolts) {
|
||||
translate([0, 0, 11.5]) {
|
||||
rotate([180, 0, 0]) m3_bolt_void([0, BoltsY/2, 0]);
|
||||
rotate([180, 0, 0]) m3_bolt_void([0, -BoltsY/2, 0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
LIBRARY = false;
|
||||
PART = "sprocketed_roller_reinforced";
|
||||
PART = "sprocketed_wheel";
|
||||
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);
|
||||
} else if (!LIBRARY && PART == "sprocketed_roller_reinforced_8") {
|
||||
rotate([180, 0, 0]) sprocketed_roller(sprockets = 8, bevel = false, model = "x", reinforced = true, bolts = false, set_screw_top = true, set_screw_side = false);
|
||||
} else if (!LIBRARY && PART == "sprocketed_wheel") {
|
||||
rotate([180, 0, 0]) color("red") sprocketed_roller_reinforced(sprockets = 18, bevel = false, model = "gearbox_motor", bolts = true);
|
||||
rotate([180, 0, 0]) color("red") sprocketed_roller_reinforced(sprockets = 18, bevel = true, model = "gearbox_motor", bolts = true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue