X carriage WIP
carriage with mount
This commit is contained in:
parent
53d0005bdd
commit
2d97c3f31c
@ -15,7 +15,7 @@ module base() {
|
|||||||
difference() {
|
difference() {
|
||||||
union() {
|
union() {
|
||||||
block_with_fillet(width, depth, thickness, 10);
|
block_with_fillet(width, depth, thickness, 10);
|
||||||
cube([width, 10, thickness]);
|
mount();
|
||||||
}
|
}
|
||||||
big_holes();
|
big_holes();
|
||||||
small_holes();
|
small_holes();
|
||||||
@ -62,3 +62,43 @@ module block_with_fillet(width, depth, height, fillet) {
|
|||||||
cylinder(r = fillet, h = height / 2);
|
cylinder(r = fillet, h = height / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module mount() {
|
||||||
|
translate([(width - 30) / 2, 0]) {
|
||||||
|
// cube([30,thickness,30]);
|
||||||
|
|
||||||
|
rotate([90, 0, 0]) {
|
||||||
|
difference() {
|
||||||
|
union() {
|
||||||
|
block_with_fillet(30, 30, thickness, 10);
|
||||||
|
cube([30, 10, thickness]);
|
||||||
|
}
|
||||||
|
|
||||||
|
union() {
|
||||||
|
translate([2, 20, 10])
|
||||||
|
rotate([180, 0, 0])
|
||||||
|
screw_mount(length = 10, nut_size = 6, screw_size = 3, nut = "hexagon");
|
||||||
|
|
||||||
|
translate([25, 20, 10])
|
||||||
|
rotate([180, 0, 0])
|
||||||
|
screw_mount(length = 10, nut_size = 6, screw_size = 3, nut = "hexagon");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module screw_mount(length, nut_size, screw_size, nut = "none") {
|
||||||
|
translate([screw_size / 2, screw_size / 2, 0]) {
|
||||||
|
cylinder(d = screw_size + 3, h = screw_size);
|
||||||
|
cylinder(d = screw_size, h = length);
|
||||||
|
if (nut == "hexagon") {
|
||||||
|
translate([0, 0, length - 3])
|
||||||
|
cylinder(d = nut_size, h = 3, $fn = 6);
|
||||||
|
} else if (nut == "square") {
|
||||||
|
translate([- nut_size / 2, - nut_size / 2, length - 3])
|
||||||
|
cube([nut_size, nut_size, 3]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
X Carriage/X Carriage.stl
Normal file
BIN
X Carriage/X Carriage.stl
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user