diff --git a/house/house.scad b/house/house.scad index c507625..119a356 100644 --- a/house/house.scad +++ b/house/house.scad @@ -10,10 +10,10 @@ office_jacob_width = 3410; bedroom_length = 2060; bedroom_width = 3410; -frame_depth = 135; +frame_depth = 65; hall_length = 2610; -hall_length_extra_office_jacob = 1240;// Hall to end of office +hall_length_extra_office_jacob = 1040;// Hall to end of office hall_length_full = hall_length + hall_length_extra_office_jacob; hall_width = 975; @@ -139,11 +139,7 @@ rectangle( house_height ], "red" -) - -echo("House length =", house_length, ", width = ", house_width); -echo("Living diff length =", house_length - office_jacob_length - bedroom_length - livingroom_length_back); -echo(office_jacob_length, bedroom_length, livingroom_length_back); +); module rectangle(start = [0, 0, 0], dimensions = [0, 0, 0], color) { @@ -158,4 +154,43 @@ module rectangle(start = [0, 0, 0], dimensions = [0, 0, 0], color) } } -color("white") door(); +// Hallway door +translate([ +kitchen_width + bathroom_width + 2* frame_depth, +livingroom_length_kitchen + 65, 0 +]) color("white") door(-35); + +// Bedroom door +translate([ + house_width - bedroom_width - 1.5 * frame_depth, + house_length - bedroom_length - 2 * frame_depth - 150, + 0 +]) color("white") + rotate([0, 0, -90]) door(35); + +// Office Jacob door +translate([ + house_width - office_jacob_width - 1.5 * frame_depth, + house_length - hall_length_extra_office_jacob, + 0 +]) color("white") + rotate([0, 0, -90]) door( + open_rotation = -35, + door_position = DOOR_RIGHT + ); + + +// Bathroom door +translate([ + house_width - office_jacob_width - hall_width - frame_depth, + house_length - hall_to_bathroom_length - bathroom_length - frame_depth, + 1 +]) color("white") rotate([0, 0, 90]) door(door_position = DOOR_RIGHT); + +// Main door +translate([ + house_width - office_jacob_width - hall_width - 2 * frame_depth, + house_length - hall_length_extra_office_jacob - 0.5 * frame_depth, + 1 +]) color("green") rotate([0, 0, -90]) + door(); \ No newline at end of file