Skip to content

Instantly share code, notes, and snippets.

@creationix
Last active February 18, 2021 03:12
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/91fe8f629e9c11e9abdc1286ed7777b4 to your computer and use it in GitHub Desktop.
Save creationix/91fe8f629e9c11e9abdc1286ed7777b4 to your computer and use it in GitHub Desktop.
color("#aaaaaa") {
// Fridge
translate([0,-1.5,0]) cube([32,36,70]);
// Dishwasher
translate([0,36,0]) cube([24,24,34.5]);
// Sink
translate([27+1.5,36+21+25.9,36.05-10]) cube([33,16,10]);
// Stove
translate([24+3+36+24,36+21+24+3-1,0]) union() {
cube([30,25,36]);
translate([0,19,36]) cube([30,6,8]);
}
// Microwave
translate([24+3+36+24,36+21+24+3+10,96-44+5]) cube([30,14,15]);
}
// left counter
translate([0,36,34.5]) linear_extrude(1.5) polygon(points=[
[0,0],[25,0],[25,72-25],[0,72]
]);
// left backsplash
translate([0,36,36]) cube([1,72,4]);
translate([1,36,36]) cube([24,1,4]);
// Back counter
translate([0,36+72-25,34.5]) linear_extrude(1.5) polygon(points=[
[25,0],[87,0],[87,25],[0,25]
]);
// Back splash
translate([1,36+72-1,36]) cube([86,1,4]);
// Right counter
translate([27+36+24+30,36+72-25,34.5]) cube([24,25,1.5]);
// Right backslash
translate([27+36+24+30+24-1,36+72-25,36]) cube([1,25,4]);
translate([27+36+24+30,36+72-1,36]) cube([23,1,4]);
translate([64.5,2,34.5]) cube([52.5,24+5+2,1.5]);
%union() {
// Island Wall
translate([65.5,3,0]) cube([50.5,5,34.5]);
// Left Wall
difference() {
translate([-5,-119.5,0]) cube([5,227.7,96]);
translate([-6,-36,-1]) cube([10,32,81]);
}
// Back Wall
translate([-5,108,0]) cube([141+10,5,96]);
// Right Wall
translate([141,108-28,0])cube([5,28,96]);
//124 48 21
translate([-5,-119.5-5,0]) cube([124+10,5,96]);
translate([124,-119.5,0]) cube([5,48,96]);
translate([124+5,-119.5+48-5,0]) cube([21-5,5,96]);
}
// Over Fridge
translate([0,-1.5,96-24]) cube([24,36,24]);
// Tall End Wall
translate([0,34.5,0]) cube([26,1.5,96]);
// Over dishwasher
translate([0,36,96-42]) cube([12,24,42]);
// Blind corner
translate([0,36+24,0]) cube([24,48,34.5]);
// Over Blind
translate([0,36+24,96-42]) cube([12,21,42]);
// Over corner
translate([0,36+24+21,96-42]) linear_extrude(42) polygon(points = [
[0,0],[15,0],[27,12],[27,27],[0,27]
]);
// spacer
translate([24,36+21+24+3,0]) cube([3,1.5,34.5]);
// Sink
translate([24+3,36+21+24+3,0]) cube([36,24,34.5]);
// Over Sink
translate([24+3,36+21+24+3+12,96-24]) cube([36,12,24]);
// Left of stove
translate([24+3+36,36+21+24+3,0]) cube([24,24,34.5]);
// Over Left of stove
translate([24+3+36,36+21+24+3+12,96-42]) cube([24,12,42]);
// Over Stove
translate([24+3+36+24,36+21+24+3+12,96-24]) cube([30,12,24]);
// Right of stove
translate([24+3+36+24+30,36+21+24+3,0]) cube([24,24,34.5]);
// Over Right of stove
translate([24+3+36+24+30,36+21+24+3+12,96-42]) cube([24,12,42]);
// Island
translate([67,8,0]) cube([24,24,34.5]);
translate([67+24,8,0]) cube([24,24,34.5]);
module table(width, length, height) {
color("#b78353") {
// Legs
cube([5.5,1.5,height]);
translate([0,1.5,0]) cube([5.5,1.5,height-3.5]);
//translate([0,3,0]) cube([5.5,1.5,height-3.5]);
translate([0,length-1.5,0]) cube([5.5,1.5,height]);
translate([0,length-3,0]) cube([5.5,1.5,height-3.5]);
//translate([0,length-4.5,0]) cube([5.5,1.5,height-3.5]);
translate([width-5.5,0,0]) cube([5.5,1.5,height]);
translate([width-5.5,1.5,0]) cube([5.5,1.5,height-3.5]);
//translate([width-5.5,3,0]) cube([5.5,1.5,height-3.5]);
translate([width-5.5,length-1.5,0]) cube([5.5,1.5,height]);
translate([width-5.5,length-3,0]) cube([5.5,1.5,height-3.5]);
//translate([width-5.5,length-4.5,0]) cube([5.5,1.5,height-3.5]);
// Long Aprons
translate([0,1.5,height-3.5])cube([1.5,length-3,3.5]);
translate([width-1.5,1.5,height-3.5])cube([1.5,length-3,3.5]);
// Short Aprons
translate([5.5,0,height-3.5]) cube([width-11,1.5,3.5]);
translate([5.5,length-1.5,height-3.5]) cube([width-11,1.5,3.5]);
// Supports
for (i=[0:(length-3-5.5)/11])
translate([1.5,i*11+1.5,height-3.5])
cube([width-3,5.5,1.5]);
}
// Tabletop
color("#536d6a") for (i=[0:(width-3-5.5)/5.5])
translate([1.5+i*5.5,1.5,height-2])
cube([5.5,length-3,1.5]);
}
translate([39, -120,0]) {
table(47,85.5,31);
// Benches are small tables.
translate([41.5+10,(85.5-74.5)/2,0]) table(19.5,74.5,19);
translate([-14-10,(85.5-74.5)/2,0]) table(19.5,74.5,19);
}
@creationix
Copy link
Author

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment