2024-03-19 15:13:48 +00:00
|
|
|
include <./common/common.scad>;
|
|
|
|
|
2024-03-27 23:11:40 +00:00
|
|
|
Font = "Liberation Sans";
|
2024-03-19 15:13:48 +00:00
|
|
|
Diameter = 33.5;
|
|
|
|
Height = 5;
|
2024-03-27 23:11:40 +00:00
|
|
|
Thickness = 2;
|
|
|
|
Make = "Test";
|
|
|
|
Size = "16mm";
|
2024-03-19 15:13:48 +00:00
|
|
|
$fn = 200;
|
|
|
|
|
2024-03-27 23:11:40 +00:00
|
|
|
module label (pos = [0, 0, 0]) {
|
|
|
|
translate(pos) rotate([180, 0, 0]) {
|
|
|
|
translate([0, 4, 0]) linear_extrude(height = 1) {
|
|
|
|
text(Make, size = 4, font = Font, halign = "center", valign = "center", $fn = 16);
|
|
|
|
}
|
|
|
|
translate([0, -4, 0]) linear_extrude(height = 1) {
|
|
|
|
text(Size, size = 5, font = Font, halign = "center", valign = "center", $fn = 16);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-19 15:13:48 +00:00
|
|
|
module front_cap () {
|
|
|
|
difference () {
|
|
|
|
cylinder(r = R(Diameter) + Thickness, h = Height + Thickness);
|
|
|
|
translate([0, 0, Thickness]) cylinder(r = R(Diameter), h = Height + Thickness);
|
2024-03-27 23:11:40 +00:00
|
|
|
//
|
|
|
|
translate([0, 0, -1]) difference () {
|
|
|
|
cylinder(r = R(Diameter) + Thickness + 2, h = 2);
|
|
|
|
cylinder(r1 = R(Diameter) + Thickness - 2, r2 = R(Diameter) + Thickness, h = 2);
|
|
|
|
}
|
|
|
|
label([0, 0, 0.25]);
|
2024-03-19 15:13:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-27 23:11:40 +00:00
|
|
|
front_cap();
|