Files
3d-models/functional/2-in-hose-fitting.scad
T
2025-12-26 13:24:46 -06:00

76 lines
2.3 KiB
OpenSCAD

$fn=256;
// all measurements in mm
height = 100; // total
hoseClampWidth = 12; // accomodate 5/16" (8mm) hose clamp width
sectionHeight = 22; // (height - 2 * hoseClampWidth) / 3;
centerHeight = height - 2 * (hoseClampWidth + sectionHeight);
/*
difference() {
union() {
// main sections
for (i = [-1,1]) {
translate([0, 0, i * (hoseClampWidth + sectionHeight)])
cylinder(d = 48, h = sectionHeight, center = true);
}
// hose pipe fitting sections
for (i = [-1,1]) {
translate([0, 0, i * (0.1 + hoseClampWidth + sectionHeight) * 0.5])
cylinder(d = 44, h = hoseClampWidth + 0.2, center = true);
translate([0, 0, i * ((sectionHeight + hoseClampWidth) * 0.5) + (hoseClampWidth * 0.5) - 1])
cylinder(d1 = 44, d2 = 48, h = 2, center = true);
translate([0, 0, i * ((sectionHeight + hoseClampWidth) * 0.5) + (hoseClampWidth * 0.5) + 1 - hoseClampWidth])
cylinder(d1 = 48, d2 = 44, h = 2, center = true);
}
// center section
cylinder(d = 48, h = sectionHeight, center = true);
// center ring
translate([0, 0, -1.5]) cylinder(d1 = 48, d2 = 52, h = 3, center = true);
translate([0, 0, 1.5]) cylinder(d1 = 52, d2 = 48, h = 3, center = true);
}
// hollow out
cylinder(d = 36, h = 100.2, center = true);
}
*/
difference() {
union() {
// main sections
for (i = [-1,1]) {
translate([0, 0, i * ((centerHeight + sectionHeight) * 0.5 + hoseClampWidth)])
cylinder(d = 48, h = sectionHeight, center = true);
}
// hose pipe fitting sections
for (i = [-1,1]) {
translate([0, 0, i * (0.1 + hoseClampWidth + centerHeight) * 0.5])
cylinder(d = 44, h = hoseClampWidth + 0.2, center = true);
color("SlateGray")
translate([0, 0, (hoseClampWidth / 2 - 1) + i * ((centerHeight + hoseClampWidth)* 0.5)])
cylinder(d1 = 44, d2 = 48, h = 2, center = true);
color("SeaGreen")
translate([0, 0, -(hoseClampWidth / 2 - 1) + i * ((centerHeight + hoseClampWidth)* 0.5)])
cylinder(d1 = 48, d2 = 44, h = 2, center = true);
}
// center section
cylinder(d = 48, h = centerHeight, center = true);
// center ring
translate([0, 0, -1.5]) cylinder(d1 = 48, d2 = 52, h = 3, center = true);
translate([0, 0, 1.5]) cylinder(d1 = 52, d2 = 48, h = 3, center = true);
}
// hollow out
cylinder(d = 36, h = 100.2, center = true);
}