Wip top dampener for rev 2
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
$fn = 32;
|
$fn = 32;
|
||||||
|
|
||||||
$space = 5.3;
|
$space = 3.3;
|
||||||
$width = 15.2;
|
$width = 15.2;
|
||||||
$length = $width;
|
$length = $width;
|
||||||
$height = 1;
|
$height = 1;
|
||||||
$holes = $height*4;
|
$holes = $height*4;
|
||||||
$cut = $holes/2*-1;
|
$cut = $holes/2*-1;
|
||||||
|
$switchDistance = $width+ $space;
|
||||||
|
|
||||||
$columns = 6;
|
$columns = 6;
|
||||||
$rows = 5;
|
$rows = 5;
|
||||||
@@ -13,14 +14,7 @@ $rows = 5;
|
|||||||
$xBase = (($width + $space) * $columns) + $space;
|
$xBase = (($width + $space) * $columns) + $space;
|
||||||
$yBase = (($length + $space) * $rows) + $space;
|
$yBase = (($length + $space) * $rows) + $space;
|
||||||
|
|
||||||
$yTop = 30.750;
|
|
||||||
$xTop = 101.348;
|
|
||||||
|
|
||||||
$xPico = 52.53;
|
|
||||||
$yPico = 25;
|
|
||||||
|
|
||||||
$xAux = 10;
|
|
||||||
$yAux = 14.5;
|
|
||||||
module pin(){
|
module pin(){
|
||||||
cylinder(h=$holes, r=1, center=false);
|
cylinder(h=$holes, r=1, center=false);
|
||||||
}
|
}
|
||||||
@@ -40,41 +34,32 @@ module switch(){
|
|||||||
pin();
|
pin();
|
||||||
translate([$xCenter + 5, $yCenter+-5.15,0])
|
translate([$xCenter + 5, $yCenter+-5.15,0])
|
||||||
pin();
|
pin();
|
||||||
translate([0, $length + 1.4, 0])
|
translate([0, $length + 1.4, 0]);
|
||||||
cube([$width, 3, $holes]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
module switches(){
|
module switchColumn(){
|
||||||
for (x=[0:$columns -1])
|
difference() {
|
||||||
|
translate([-($space/2), -($space/2)])
|
||||||
|
cube([$switchDistance, $switchDistance * $rows, $height]);
|
||||||
for (y=[0:$rows-1])
|
for (y=[0:$rows-1])
|
||||||
translate([x * ($width + $space) ,y * ($length+$space) ,0])
|
translate([0 * ($width + $space) ,y * ($length+$space) ,0])
|
||||||
switch();
|
switch();
|
||||||
}
|
|
||||||
|
|
||||||
module body(){
|
|
||||||
difference(){
|
|
||||||
cube([$xBase, $yBase + $yTop, $height]);
|
|
||||||
translate([$xTop,$yBase + $yTop,$holes/2*-1]){
|
|
||||||
rotate([0,0,-45]){
|
|
||||||
cube([1000, 1000, $holes]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module pico(){
|
module topDampener(){
|
||||||
translate([0,$yTop + $yBase - $yPico,$cut]){
|
switchColumn();
|
||||||
cube([$xPico, $yPico, $holes]);
|
translate([$switchDistance,0,0])
|
||||||
}
|
switchColumn();
|
||||||
translate([$xPico, $yBase + $yTop - $yAux, $cut]){
|
translate([$switchDistance * 2,5,0])
|
||||||
cube([$xAux, $yAux, $holes]);
|
switchColumn();
|
||||||
}
|
translate([$switchDistance * 3,0,0])
|
||||||
|
switchColumn();
|
||||||
|
translate([$switchDistance * 4,-5,0])
|
||||||
|
switchColumn();
|
||||||
|
translate([$switchDistance * 5,-5,0])
|
||||||
|
switchColumn();
|
||||||
}
|
}
|
||||||
|
|
||||||
difference(){
|
topDampener();
|
||||||
body();
|
|
||||||
pico();
|
|
||||||
translate([$space,$space,$holes/2*-1])
|
|
||||||
switches();
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user