Mdify top-dampener for rev2
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
$fn = 32;
|
$fn = 32;
|
||||||
|
|
||||||
$space = 3.3;
|
$space = 3;
|
||||||
$width = 15.2;
|
$width = 15.5;
|
||||||
$length = $width;
|
$length = $width;
|
||||||
$height = 1;
|
$height = 0.4;
|
||||||
$holes = $height*4;
|
$holes = $height*4;
|
||||||
$cut = $holes/2*-1;
|
$cut = $holes/2*-1;
|
||||||
$switchDistance = $width+ $space;
|
$switchDistance = $width+ $space;
|
||||||
@@ -19,7 +19,7 @@ module pin(){
|
|||||||
cylinder(h=$holes, r=1, center=false);
|
cylinder(h=$holes, r=1, center=false);
|
||||||
}
|
}
|
||||||
|
|
||||||
module switch(){
|
module switch($diodesTop = false){
|
||||||
$xCenter = $width/2;
|
$xCenter = $width/2;
|
||||||
$yCenter = $length/2;
|
$yCenter = $length/2;
|
||||||
translate([$xCenter, $yCenter, 0])
|
translate([$xCenter, $yCenter, 0])
|
||||||
@@ -35,6 +35,14 @@ module switch(){
|
|||||||
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]);
|
||||||
|
$dDistanceFromCenter = $switchDistance/2;
|
||||||
|
$dWidth = 10.95;
|
||||||
|
$dHeight = 1.8;
|
||||||
|
if ($diodesTop){
|
||||||
|
translate([$xCenter - ($dWidth/2), $yCenter + $dDistanceFromCenter - ($dHeight/2), 0]){
|
||||||
|
cube([$dWidth, $dHeight, $holes]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -42,13 +50,16 @@ module switchColumn(){
|
|||||||
difference() {
|
difference() {
|
||||||
translate([-($space/2), -($space/2)])
|
translate([-($space/2), -($space/2)])
|
||||||
cube([$switchDistance, $switchDistance * $rows, $height]);
|
cube([$switchDistance, $switchDistance * $rows, $height]);
|
||||||
for (y=[0:$rows-1])
|
for (y=[0:$rows-1]){
|
||||||
translate([0 * ($width + $space) ,y * ($length+$space) ,0])
|
translate([0 * ($width + $space) ,y * ($length+$space) ,0]) {
|
||||||
switch();
|
switch(y<3);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module topDampener(){
|
module topDampener(){
|
||||||
|
union(){
|
||||||
switchColumn();
|
switchColumn();
|
||||||
translate([$switchDistance,0,0])
|
translate([$switchDistance,0,0])
|
||||||
switchColumn();
|
switchColumn();
|
||||||
@@ -61,5 +72,6 @@ module topDampener(){
|
|||||||
translate([$switchDistance * 5,-5,0])
|
translate([$switchDistance * 5,-5,0])
|
||||||
switchColumn();
|
switchColumn();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
topDampener();
|
topDampener();
|
||||||
Binary file not shown.
Reference in New Issue
Block a user