/* This file is part of SBC Case Builder https://github.com/hominoids/SBC_Case_Builder Copyright 2022,2023,2024 Edward A. Kisiel hominoid@cablemi.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see Code released under GPLv3: http://www.gnu.org/licenses/gpl.html cableholder_spacer() */ /* NAME: cableholder_spacer DESCRIPTION: creates spacer and cable holder for drive mounts TODO: none USAGE: cableholder_spacer() */ module cableholder_spacer(length) { size = [9.4,16,6]; adj = .01; $fn = 90; translate([0,size[2]/2,-5]) rotate([90,0,0]) difference() { union() { translate([size[0]/2,size[0]/2,0]) rotate([0,0,90]) long_slot(size[0],size[1],size[2]); translate([-length,5,3]) rotate([0,90,0]) cylinder(d=6, h=length+9.4); } translate([-length-adj,5,3]) rotate([0,90,0]) cylinder(d=3.2, h=length+size[0]+2*adj); translate([-1,8,-1]) cube([2,20,9]); translate([5,9.5,-1]) rotate([0,0,90]) long_slot(4.5,11,9); translate([3,20,-1]) rotate([0,0,45]) cube([2,6,9]); } }