toggle cleanup
This commit is contained in:
parent
6a6d99a841
commit
684c8a50af
@ -1,5 +1,4 @@
|
|||||||
// Toggle
|
// Cord toggle for securing grommet equipment
|
||||||
//
|
|
||||||
|
|
||||||
mainDiam=10;
|
mainDiam=10;
|
||||||
mainLength=20;
|
mainLength=20;
|
||||||
@ -8,17 +7,16 @@ cordHoleGap=1;
|
|||||||
flattenBottom=0.3;
|
flattenBottom=0.3;
|
||||||
$fn = 40;
|
$fn = 40;
|
||||||
|
|
||||||
|
|
||||||
difference(){
|
difference(){
|
||||||
|
|
||||||
|
// cyl mirrored across yz +++++++++++++++++++++++++++++++++++++++++++
|
||||||
// cyl mirrored across yz
|
|
||||||
color("blue"){
|
color("blue"){
|
||||||
for (dir = [-1 : 1] ) mirror([dir, 0, 0]){
|
for (dir = [-1 : 1] ) mirror([dir, 0, 0]){
|
||||||
union(){
|
union(){
|
||||||
rotate([0,90,0]){
|
rotate([0,90,0]){
|
||||||
cylinder(mainLength / 2, d = mainDiam, center=false);
|
cylinder(mainLength / 2, d = mainDiam, center=false);
|
||||||
}
|
}
|
||||||
|
// rounded ends
|
||||||
translate([mainLength / 2, 0, 0]){
|
translate([mainLength / 2, 0, 0]){
|
||||||
sphere(d = mainDiam);
|
sphere(d = mainDiam);
|
||||||
}
|
}
|
||||||
@ -26,15 +24,14 @@ color("blue"){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// flatten bottom for better print and interface ---------------------------
|
||||||
// flatten bottom
|
|
||||||
color("red"){
|
color("red"){
|
||||||
translate([0, 0, -1 * (1 - flattenBottom) * mainDiam]){
|
translate([0, 0, -1 * (1 - flattenBottom) * mainDiam]){
|
||||||
cube( [2 * mainLength, mainDiam, mainDiam], center=true);
|
cube( [2 * mainLength, mainDiam, mainDiam], center=true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//holes
|
//holes for cord
|
||||||
color("green"){
|
color("green"){
|
||||||
for (dir = [-1 : 1]) mirror([dir, 0, 0]){
|
for (dir = [-1 : 1]) mirror([dir, 0, 0]){
|
||||||
translate([cordHoleGap * cordDiam, 0, 0]){
|
translate([cordHoleGap * cordDiam, 0, 0]){
|
||||||
@ -44,7 +41,7 @@ color("green"){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//relief
|
//relief for cord bend
|
||||||
color("yellow"){
|
color("yellow"){
|
||||||
translate([0, 0, mainDiam / 2]){
|
translate([0, 0, mainDiam / 2]){
|
||||||
rotate([0, 90, 0]){
|
rotate([0, 90, 0]){
|
||||||
@ -52,5 +49,4 @@ color("yellow"){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user