diff options
-rw-r--r-- | Case.scad | 190 |
1 files changed, 97 insertions, 93 deletions
@@ -14,108 +14,112 @@ HOLE_R=1.5; // 2.7+1.5 = 4.2 HOLE_DISTANCE=4.2; + // Box -translate([0,0,-5]) -difference() { - translate([1.8,1.8,0]) - linear_extrude(50) - minkowski() { - square([B_L-3.6, B_W-3.6]); - circle(6); - }; - translate([1.8,1.8,3]) - linear_extrude(50) - minkowski() { - square([B_L-3.6, B_W-3.6]); - circle(4); - }; - // USB cutouts - translate([0,37.5,5]) - cube([B_L+50, 33, 18.5]); - - // SATA Cutout - if(SATA_CUTOUT) { - translate([B_L,54,23.4]) - rotate([0,0,45]) - cylinder(6,23.4,16,$fn=4); - } + +union() { + translate([0,0,-5]) + difference() { + translate([1.8,1.8,0]) + linear_extrude(50) + minkowski() { + square([B_L-3.6, B_W-3.6]); + circle(6); + }; + translate([1.8,1.8,3]) + linear_extrude(50) + minkowski() { + square([B_L-3.6, B_W-3.6]); + circle(4); + }; + // USB cutouts + translate([0,37.5,5]) + cube([B_L+50, 33, 18.5]); - // Button / Audio cutout - translate([0,9,5]) - cube([B_L+50, 27, 9.5]); - - // Ethernet cutout - translate([-10,31.5,5]) { - cube([50,17,16]); - } - - // DC Cutout - translate([-10,11,5]) - cube([50,10.5,9.5]); + // SATA Cutout + if(SATA_CUTOUT) { + translate([B_L,54,23.4]) + rotate([0,0,45]) + cylinder(6,23.4,16,$fn=4); + } + + // Button / Audio cutout + translate([0,9,5]) + cube([B_L+50, 27, 9.5]); + + // Ethernet cutout + translate([-10,31.5,5]) { + cube([50,17,16]); + } + + // DC Cutout + translate([-10,11,5]) + cube([50,10.5,9.5]); - // HDMI cutout - translate([-10,52.5,5]) - cube([50,16,8.2]); - - // SD Cutout - translate([99,-5,3]) - cube([13,16,2.5]); - - // Power Symbol - translate([B_L+5.5,23,18.8]) - rotate([0,270,0]) - linear_extrude(2) - { - difference() { - circle(3); - circle(2); - translate([4,0,0]) - square([10,3], center = true); + // HDMI cutout + translate([-10,52.5,5]) + cube([50,16,8.2]); + + // SD Cutout + translate([99,-5,3]) + cube([13,16,2.5]); + + // Power Symbol + translate([B_L+5.5,23,18.8]) + rotate([0,270,0]) + linear_extrude(2) + { + difference() { + circle(3); + circle(2); + translate([4,0,0]) + square([10,3], center = true); + } + translate([2.5,0,0]) + square([3,1], center = true); } - translate([2.5,0,0]) - square([3,1], center = true); - } - // Reset symbol - translate([B_L+5.5,32.5,18.8]) - rotate([90,0,0]) - rotate([0,270,0]) - linear_extrude(2) - { - difference() { - circle(3); - circle(2); - square(4); + // Reset symbol + translate([B_L+5.5,32.5,18.8]) + rotate([90,0,0]) + rotate([0,270,0]) + linear_extrude(2) + { + difference() { + circle(3); + circle(2); + square(4); + } + translate([0.7,2.5,0]) + circle(r=1.5, $fn=3); } - translate([0.7,2.5,0]) - circle(r=1.5, $fn=3); - } - - // DC Symbol - translate([-5.5,12.25,16]) - mirror([0,0,1]) - rotate([0,90,0]) - linear_extrude(2) - { - translate([2, 0 ,0]) - square([1,8]); - square([1,1.6]); - translate([0,3.2,0]) - square([1,1.6]); - translate([0,6.4,0]) - square([1,1.6]); + // DC Symbol + translate([-5.5,12.25,16]) + mirror([0,0,1]) + rotate([0,90,0]) + linear_extrude(2) + { + translate([2, 0 ,0]) + square([1,8]); + + square([1,1.6]); + translate([0,3.2,0]) + square([1,1.6]); + translate([0,6.4,0]) + square([1,1.6]); + } } -} -translate([HOLE_DISTANCE,HOLE_DISTANCE,-5]) -pin(); -translate([B_L - HOLE_DISTANCE,HOLE_DISTANCE,-5]) -pin(); -translate([HOLE_DISTANCE,B_W - HOLE_DISTANCE,-5]) -pin(); -translate([B_L - HOLE_DISTANCE,B_W - HOLE_DISTANCE,-5]) -pin(); + translate([HOLE_DISTANCE,HOLE_DISTANCE,-5]) + pin(); + translate([B_L - HOLE_DISTANCE,HOLE_DISTANCE,-5]) + pin(); + translate([HOLE_DISTANCE,B_W - HOLE_DISTANCE,-5]) + pin(); + translate([B_L - HOLE_DISTANCE,B_W - HOLE_DISTANCE,-5]) + pin(); +} translate([0,-20,42.5]) |