diff --git a/dromToggle.scad b/dromToggle.scad index 074988b..1a31910 100644 --- a/dromToggle.scad +++ b/dromToggle.scad @@ -1,5 +1,4 @@ -// Toggle -// +// Cord toggle for securing grommet equipment mainDiam=10; mainLength=20; @@ -8,17 +7,16 @@ cordHoleGap=1; flattenBottom=0.3; $fn = 40; - difference(){ - -// cyl mirrored across yz +// cyl mirrored across yz +++++++++++++++++++++++++++++++++++++++++++ color("blue"){ for (dir = [-1 : 1] ) mirror([dir, 0, 0]){ union(){ rotate([0,90,0]){ cylinder(mainLength / 2, d = mainDiam, center=false); } + // rounded ends translate([mainLength / 2, 0, 0]){ sphere(d = mainDiam); } @@ -26,15 +24,14 @@ color("blue"){ } } - -// flatten bottom +// flatten bottom for better print and interface --------------------------- color("red"){ translate([0, 0, -1 * (1 - flattenBottom) * mainDiam]){ cube( [2 * mainLength, mainDiam, mainDiam], center=true); } } -//holes +//holes for cord color("green"){ for (dir = [-1 : 1]) mirror([dir, 0, 0]){ translate([cordHoleGap * cordDiam, 0, 0]){ @@ -44,7 +41,7 @@ color("green"){ } } -//relief +//relief for cord bend color("yellow"){ translate([0, 0, mainDiam / 2]){ rotate([0, 90, 0]){ @@ -52,5 +49,4 @@ color("yellow"){ } } } - }