Created
March 12, 2017 22:35
-
-
Save mschuetz/522d0dc970f4bb84ad15aa81adc377eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 2,5 * 6 * 2 | |
module case(wall_thickness) { | |
// dimensions of the space inside | |
width = 30; | |
height = 60; | |
depth = 30; | |
difference() { | |
// shell | |
translate([-1 * wall_thickness, -1 * wall_thickness, -1 * wall_thickness]) | |
cube([width + wall_thickness * 2, height + wall_thickness * 2, depth]); | |
// create inner space | |
cube([width, height, depth]); | |
// openings for velcro | |
translate([3, 5, -2 * wall_thickness]) | |
cube([2, 10, 4*wall_thickness]); | |
translate([25, 5, -2 * wall_thickness]) | |
cube([2, 10, 4*wall_thickness]); | |
translate([3, 45, -2 * wall_thickness]) | |
cube([2, 10, 4*wall_thickness]); | |
translate([25, 45, -2 * wall_thickness]) | |
cube([2, 10, 4*wall_thickness]); | |
// opening for temperature sensor cable | |
for (x =[10:20]) { | |
translate([x, 2, 5]) rotate([90, 0, 0]) | |
cylinder(r=2, h=5*wall_thickness, $fn = 10); | |
} | |
// front ventilation holes | |
for (x =[10, 15, 20]) { | |
translate([x, 62, 5]) rotate([90, 0, 0]) | |
cylinder(r=1, h=5*wall_thickness, $fn = 10); | |
} | |
} | |
} | |
case(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment