It’s official; we are moving to NYC this summer! This means downsizing from a house to an apartment, and some interesting furniture decisions. To help sort things out (and to procrastinate actually packing for as long as possible) I wrote a customizable sofa generator in OpenSCAD, and used it to model our sofas:
// renders //////////////////////////////////////////////////
//uncomment the one you want to make
I really love this series – wish we had had a series of units when planning our new kitchen – maybe manufacturers will soon routinely provide printable models.
I would be tempted to refactor (easy to do after you've done the work )
module cuboid(depth,length,height,r=1) {
hull(){
translate([0,0,0]) sphere(r);
translate([depth,0,0]) sphere(r);
translate([depth,length,0]) sphere(r);
translate([0,length,0]) sphere(r);
translate([0,length,height]) sphere(r);
translate([depth,length,height]) sphere(r);
translate([depth,0,height]) sphere(r);
translate([0,0,height]) sphere(r);
}
}
module sofa(depth,length,height,r=2) {
cuboid(depth/4,length,height); //back
cuboid(depth,depth/4,height/2); // left arm
translate([0,length-depth/4,0])
cuboid(depth,depth/4,height/2); //right arm
cuboid(depth,length,height/3); // cushions
}
scale(s)
sofa(39,90,32);