11// Draft button for radio replacement
22// Draft structure only not real measurments yet
33// Shape should be approx correct
4+ // might round corners of top button of needed
45
5- buttonTop = [10 ,10 ,10 ] ;
6- buttonBottom = [20 ,20 ,20 ] ;
7- buttonBottomCavity = [15 ,15 ,15 ] ;
6+ buttonTop = [4 ,4 ,11 ] ;
7+ buttonBottom = [5 ,5 ,6 ] ;
8+ buttonBottomCavity = [3.1 ,3.1 ,7 ] ;
9+ buttonBrim = [6 ,6 ,1 ] ;
810wiggle = .01 ;
9- difference () {
10- cube (buttonBottom);
11- translate ([buttonBottom.x/2 - buttonBottomCavity.x/2 ,buttonBottom.z/2 - buttonBottomCavity.y/2 ,- wiggle]) cube (buttonBottomCavity+ [0 ,0 ,wiggle]);
11+ #difference () {
12+ union (){
13+ // bottom
14+ cube (buttonBottom);
15+ // Brim
16+ translate ([buttonBottom.x/2 - buttonTop.x/2 ,buttonBottom.y/2 - buttonTop.y/2 ,buttonBottom.z]) cube (buttonTop);
17+ // top
18+ translate ([buttonBottom.x/2 - buttonBrim.x/2 ,buttonBottom.y/2 - buttonBrim.y/2 ,buttonBottom.z]) cube (buttonBrim);
19+ }
20+ // cavity
21+ translate ([buttonBottom.x/2 - buttonBottomCavity.x/2 ,buttonBottom.y/2 - buttonBottomCavity.y/2 ,- wiggle]) cube (buttonBottomCavity+ [0 ,0 ,wiggle]);
1222}
13- translate ([buttonBottom.x/2 - buttonTop .x/2 ,buttonBottom.z /2 - buttonTop .y/2 ,buttonBottom.z ]) cube (buttonTop) ;
23+ translate ([buttonBottom.x/2 - buttonBottomCavity .x/2 ,buttonBottom.y /2 - buttonBottomCavity .y/2 ,- wiggle ]) cube (buttonBottomCavity + [ 0 , 0 ,wiggle]) ;
0 commit comments