Skip to content

Instantly share code, notes, and snippets.

@creationix
Created January 14, 2021 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save creationix/1374fcfe17abe1f1dd37cd93a80b7d4d to your computer and use it in GitHub Desktop.
Save creationix/1374fcfe17abe1f1dd37cd93a80b7d4d to your computer and use it in GitHub Desktop.
//for(i=[16:16:156]) {
//#translate([i-.75,0,1.5]) cube([1.5,5.5,93]);
//}
//#translate([0,5.5,0])cube([156,6.5,8*12]);
// top and bottom boards
translate([0,0,94.5]) cube([12*8,5.5,1.5]);
translate([12*8,0,94.5]) cube([156-12*8,5.5,1.5]);
translate([0,0,0]) cube([58,5.5,1.5]);
translate([12*8,0,0]) cube([156-12*8,5.5,1.5]);
translate([0,0,1.5]) cube([1.5,5.5,93]);
translate([156-1.5,0,1.5]) cube([1.5,5.5,93]);
// left window left
translate([16-.75,0,1.5]) cube([1.5,5.5,93]);
// left window studs top
translate([16*2-.75,0,58.5+25.5]) cube([1.5,5.5,10.5]);
// left window studs bottom
translate([16*2-.75,0,1.5]) cube([1.5,5.5,58.5-3-24]);
translate([16.75,0,1.5]) cube([1.5,5.5,58.5-3-24]);
// left window top
translate([16.75,0,58.5+24]) cube([32-1.5,5.5,1.5]);
// left window bottom
translate([16.75,0,58.5-24-1.5]) cube([32-1.5,5.5,1.5]);
translate([16.75+24,0,58.5-24]) cube([1.5,5.5,48]);
// stud
translate([48-.75,0,1.5]) cube([1.5,5.5,93]);
// door left
translate([56.5,0,1.5]) cube([1.5,5.5,93]);
// door top
translate([58,0,58.5+24]) cube([38,5.5,1.5]);
// studs over door
translate([16*4-.75,0,58.5+25.5]) cube([1.5,5.5,10.5]);
translate([16*5-.75,0,58.5+25.5]) cube([1.5,5.5,10.5]);
translate([8*12-1.5,0,58.5+25.5]) cube([1.5,5.5,10.5]);
translate([16*6,0,1.5]) cube([1.5,5.5,93]);
translate([16*7-.75,0,1.5]) cube([1.5,5.5,93]);
translate([16*9-.75,0,1.5]) cube([1.5,5.5,93]);
translate([16*7+24.75,0,58.5-24]) cube([1.5,5.5,48]);
// right window top
translate([16*7+.75,0,58.5+24]) cube([32-1.5,5.5,1.5]);
// right window bottom
translate([16*7+.75,0,58.5-24-1.5]) cube([32-1.5,5.5,1.5]);
translate([16*8-.75,0,58.5+25.5]) cube([1.5,5.5,10.5]);
translate([16*8-.75,0,1.5]) cube([1.5,5.5,58.5-3-24]);
translate([16*7+.75,0,1.5]) cube([1.5,5.5,58.5-3-24]);
// window rough openings
%translate([16+.75,0,58.5-24])cube([24,2,48]);
%translate([16*7+.75,0,58.5-24])cube([24,2,48]);
// door rough opening
%translate([58,0,0])cube([38,5,82.5]);
// first drywall
difference(){
translate([0,-.5,0])cube([48,.5,96]);
translate([16+.75,-.51,58.5-24])cube([24,.52,48]);
}
// second drywall
difference(){
translate([48,-.5,0])cube([48,.5,96]);
translate([58,-.51,0])cube([38,.52,82.5]);
}
// third drywall
difference(){
translate([96,-.5,0])cube([48,.5,96]);
translate([16*7+.75,-.51,58.5-24])cube([24,.52,48]);
}
// fourth drywall
translate([48*3,-.5,0])cube([158-(9*16)-2,.5,96]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment