Started working on case

This commit is contained in:
2025-08-15 22:20:41 +02:00
parent 29a42d563b
commit 3202d53bda

View File

@@ -7,10 +7,14 @@ $height = 1;
$holes = $height*4; $holes = $height*4;
$cut = $holes/2*-1; $cut = $holes/2*-1;
$switchDistance = $width+ $space; $switchDistance = $width+ $space;
$shellWidth = 6;
$clearance = 0.2;
$columns = 6; $columns = 6;
$rows = 5; $rows = 5;
$fingerStep = 5;
$xBase = (($width + $space) * $columns) + $space; $xBase = (($width + $space) * $columns) + $space;
$yBase = (($length + $space) * $rows) + $space; $yBase = (($length + $space) * $rows) + $space;
@@ -80,9 +84,42 @@ module leftTopDampener(){
} }
} }
module topDampeners(){
translate([10,0,0]){ translate([10,0,0]){
rightTopDampener(); rightTopDampener();
} }
translate([-10,0,0]){ translate([-10,0,0]){
leftTopDampener(); leftTopDampener();
}
}
//topDampeners();
points = [
[0,0],
[0, $switchDistance * $rows],
[$switchDistance * 2, $switchDistance * $rows],
[$switchDistance * 2, $switchDistance * $rows + $fingerStep],
[$switchDistance * 3, $switchDistance * $rows + $fingerStep],
[$switchDistance * 3, $switchDistance * $rows],
[$switchDistance * 4, $switchDistance * $rows],
[$switchDistance * 4, $switchDistance * $rows - $fingerStep],
[$switchDistance * 6, $switchDistance * $rows - $fingerStep],
[$switchDistance * 6, 0 - $fingerStep],
[$switchDistance * 4, 0 - $fingerStep],
[$switchDistance * 4, 0],
[$switchDistance * 3, 0],
[$switchDistance * 3, 0 + $fingerStep],
[$switchDistance * 2, 0 + $fingerStep],
[$switchDistance * 2, 0],
];
union() {
linear_extrude(5){
difference(){
offset(r=$shellWidth/2 + $clearance, chamfer=true) polygon(points);
offset(r=$clearance) polygon(points);
}
}
offset(r=$shellWidth/2 + $clearance, chamfer=true) polygon(points);
} }