Ontwerp voor efficiente opslag electro koffertjes

This commit is contained in:
Ward Wouts 2014-11-23 21:05:59 +01:00
parent 0e51b2ba6e
commit fb89d5364d
11 changed files with 252 additions and 0 deletions

View file

@ -0,0 +1,24 @@
include <dimensions.scad>
module case(){
color("lightblue")
translate([ -( lidwidth- casewidth)/2 , -casedepth, caseheight-lidheight]) {
// draw the handle first, because of bad rendering in the difference function
translate([(lidwidth-handlewidth)/2, -handledepth, -((102-15)/2)-handleheight/2]) {
difference(){
cube(size=[handlewidth, handledepth, handleheight], center=false);
translate([gapoffset, handledepth-gapdepth, -10]) {
cube(size=[handlewidth-(gapoffset*2), gapdepth+10, handleheight+20], center=false);
}
}
}
// now draw the lid
cube(size=[lidwidth, casedepth, lidheight], center=false);
// and draw the body
translate([(lidwidth-casewidth)/2, 0, -caseheight+lidheight]) {
cube(size=[casewidth, casedepth, caseheight-lidheight], center=false);
}
}
}
case();