123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- $fn=60;
-
-
-
-
- module mx_switch(t = 0) {
-
- translate([0, 0, 9.25])
-
- {
-
-
- color("#503000")
- translate([0, 0, -3.9 * t]) {
-
- translate([0,0,-3.62/2])
- cube([1.35,4.5,3.62], center=true);
-
- translate([0,0,-3.62/2])
- cube([4.5,1.15,3.62], center=true);
-
- translate([0,0,-5.62])
- cube([7.2,5.56,4], center=true);
- }
-
- color("grey"){
- difference(){
-
- hull(){
- translate([0,0,-4])
- cube([9.87,10.62,0.1], center=true);
- translate([0,0,-4 -5.2])
- cube([14.58,14.58,0.1], center=true);
- }
-
- translate([0, 0, -5.8])
- cube([7.2,5.56,4], center=true);
-
-
-
-
-
- translate([0,-4.7,-6])
- cylinder(r=3/2, h=6, center=true);
- translate([0,-5.5,-6])
- cube([8,4,5], center=true);
-
-
- }
- }
-
-
- color("green")
-
- hull(){
- translate([0,0,-4 -5.3])
- cube([13.98,13.98,0.1], center=true);
- translate([0,0,-4 -5.3 -2.2])
- cube([13.98,13.98,0.1], center=true);
- translate([0,0,-4 -5.3 -5.5])
- cube([12.74,13.6,0.1], center=true);
- }
-
-
- color("black")
- difference(){
- translate([0,0,-4 -5.3 -0.82/2])
- cube([15.64,15.64,0.82], center=true);
- translate([0,0,-4 -5.3 -0.82/2 ])
- cube([5.64,20,0.82 +2], center=true);
- translate([0,0,-4 -5.3 -0.82/2 ])
- cube([20,11.64,0.82 +2], center=true);
- }
-
-
- color("white"){
-
- translate([0,0,-4 -5.3 -0.82/2 ])
- cube([1.82,16.33,0.82], center=true);
-
- difference(){
- hull(){
- translate([0,0,-4 -5.3 -0.82/2 -1.76 ])
- cube([3.65,14,0.1], center=true);
- translate([0,0,-4 -5.3 -0.82/2 -2.2 ])
- cube([3.65,14.74,0.1], center=true);
- translate([0,0,-4 -5.3 -0.82/2 -2.89 ])
- cube([3.65,14,0.1], center=true);
- }
- translate([0,0,-4 -5.3 -0.82/2 -1.76 ])
- cube([2.2,20,4], center=true);
-
- }
- }
-
-
-
- color("darkGreen"){
-
- translate([0,0,-4 -5.3 -5.5 -2/2])
- cylinder(r=3.85/2, h=2, center=true);
- translate([0,0,-4 -5.3 -5.5 -2 -1/2])
- cylinder(r2=3.85/2, r1=2.8/2, h=1, center=true);
-
- translate([4.95,0,-4 -5.3 -5.5 -2/2])
- cylinder(r=1.6/2, h=2, center=true);
- translate([4.95,0,-4 -5.3 -5.5 -2 -1/2])
- cylinder(r2=1.6/2, r1=1/2, h=1, center=true);
- translate([-4.95,0,-4 -5.3 -5.5 -2/2])
- cylinder(r=1.6/2, h=2, center=true);
- translate([-4.95,0,-4 -5.3 -5.5 -2 -1/2])
- cylinder(r2=1.6/2, r1=1/2, h=1, center=true);
- }
-
-
- color("orange"){
- translate([-3.77,2.7,-4 -5.3 -5.5 -3.1/2])
- cube([.86, 0.2,3.1], center=true);
- translate([2.7,5.2,-4 -5.3 -5.5 -3.1/2])
- cube([.86, 0.2,3.1], center=true);
- }
-
- }
-
- }
-
- mx_switch();
|