/*[ Design custom connector for eating apparatus]*/ //Set the desired diameter of the large flat cylinder at the top of the connector (default=50.4) Diameter_large_cylinder=50.4;//[30:0.1:100] //Set the desired diameter of the cutout on the large flat cylinder (default value=38) Diameter_cutout_large_cylinder=38;//[30:0.1:100] //Set the desired depth of the cutout on the large flat cylinder (default value=1) Depth_cutout_large_cylinder=1;//[0:0.1:2] // Height of the large cylinder (default value=4.8) Height_large_cylinder=4.8;//[3:0.1:6] // Set the desired diameter of the smaller cylinder at the bottom of the connector (default value=24.8) Diameter_smaller_cylinder=24.8;//[20:0.1:40] // Height of the small cylinder (default value=24.8) Height_small_cylinder=23.8;//[20:0.1:30] // Diameter of the hole in the small cylinder (default value=8.5) Diameter_small_hole=8.5;//[6:0.1:9] // Depth of the hole in the center of the small cylinder (default value= 20) Depth_small_hole=20;//[15:0.1:40] Number_of_faces=50; //[10,20,30,50,100,300] union(){ difference(){ cylinder(r = Diameter_large_cylinder/2, h = Height_large_cylinder,$fn=Number_of_faces); translate([0,0,Height_large_cylinder-0.9]) cylinder(r=37/2,h=1.1,$fn=Number_of_faces); } difference() { translate([0,0,Height_large_cylinder-Depth_cutout_large_cylinder]) cylinder(r = Diameter_smaller_cylinder/2, h = Height_small_cylinder+Depth_cutout_large_cylinder,$fn=Number_of_faces); translate([0,0,Height_large_cylinder+Height_small_cylinder+1]) rotate([180,0,0]) cylinder(r = Diameter_small_hole/2, h = Depth_small_hole+1,$fn=Number_of_faces); } }