-module Gland(){
- hull(){
- for (m=[0,1]) {
- mirror([0,0, m]) {
- translate([0,0, 1.5 + (20-13)]) cylinder(r=13, h=0.5);
- translate([0,0, 1.5]) cylinder(r=20, h=0.5);
- }
- }
- }
+cable_dias = [6.5, 8.2];
+
+cd = cable_dias[1] + 0.5;
+wall = 2.5;
+
+function Gland_xlen(cabledia) = cabledia * 1.5;
+function Gland_xdia(cabledia) = cabledia * 2.0;
+function Gland_xoutdia(cabledia) = Gland_xdia(cabledia) * 1.1 + 0.5;
+
+// origin is centre, on outside
+// outside is in direction of positive X axies
+module GlandNegative(cabledia){
+ xlen = Gland_xlen(cabledia);
+ xdia = Gland_xdia(cabledia);
+
+ hull(){
+ rotate([0,90,0]) cylinder(r= cabledia/2, h=1);
+ translate([xdia,0,0]) rotate([0,90,0]) cylinder(r= xdia/2, h=1);
+ }
+ translate([-10,0,0])
+ rotate([0,90,0])
+ cylinder(r= cabledia/2, h=11);