add a couple untracked things

This commit is contained in:
2025-07-03 20:39:15 -07:00
parent e7c8d9ab68
commit d11a06c370
2 changed files with 52 additions and 6 deletions

View File

@ -0,0 +1,52 @@
// Cord toggle for securing grommet equipment
mainDiam=10;
mainLength=20;
cordDiam=3;
cordHoleGap=1;
flattenBottom=0.3;
$fn = 40;
difference(){
// 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);
}
}
}
}
// flatten bottom for better print and interface ---------------------------
color("red"){
translate([0, 0, -1 * (1 - flattenBottom) * mainDiam]){
cube( [2 * mainLength, mainDiam, mainDiam], center=true);
}
}
//holes for cord
color("green"){
for (dir = [-1 : 1]) mirror([dir, 0, 0]){
translate([cordHoleGap * cordDiam, 0, 0]){
cylinder( mainDiam * 1.1, d = cordDiam, center = true);
}
}
}
//relief for cord bend
color("yellow"){
translate([0, 0, mainDiam / 2]){
rotate([0, 90, 0]){
cylinder(cordDiam * cordHoleGap * 2, d = cordDiam, center = true);
}
}
}
}

View File

@ -6,20 +6,14 @@
screwDiam=2.2; screwDiam=2.2;
eeWidth=5; eeWidth=5;
thickness=3.7; thickness=3.7;
$fn = 40; $fn = 40;
difference(){ difference(){
cube([eeWidth, eeWidth, thickness * 2], center=true); cube([eeWidth, eeWidth, thickness * 2], center=true);
translate([0, 0, -22]){ translate([0, 0, -22]){
cylinder(d=screwDiam, 44); cylinder(d=screwDiam, 44);
} }
translate([0, 0, -22]){ translate([0, 0, -22]){
cube([44, 44, 44], center=true); cube([44, 44, 44], center=true);
} }
} }