# Open kitchen and living room: a 4.75 x 5.54 m room in a new flat, laid out for its owner, in metres.
# The developer's kitchen run stays on the right wall; a short second row with two stools is set
# 0.90 m off the bottom wall, so the way to the bathroom door (in a recess below) and to the bedroom
# door stays free; the sofa faces the TV on the top wall. The walls on the terrace and bedroom
# sides are cut at 0.3 m to look in. The dimensions are the clearances that were checked.
# x: 0 = terrace wall, 4.75 = kitchen wall; y: 0 = bedroom/bathroom side, 5.54 = top wall (the
# entrance at its right end).
units("m")
W = "#f3f1ec"
CAB = "#e8e4dc"
TOP = "#c9a27a"
box(5.05, 5.84, 0.05, at=(-0.15, -0.15, -0.05), name="floor", color="oak planks")
box(1.47, 0.80, 0.05, at=(1.69, -0.95, -0.05), name="floor, bathroom recess", color="oak planks")
box(5.05, 0.15, 2.5, at=(-0.15, 5.54, 0), name="top wall", color=W)
box(0.15, 4.66, 2.5, at=(4.75, -0.15, 0), name="right wall", color=W)
box(0.15, 0.99, 0.45, at=(4.75, 4.51, 2.05), name="over the entrance door", color=W)
box(0.15, 0.04, 2.5, at=(4.75, 5.5, 0), name="right wall, top end", color=W)
box(0.92, 0.15, 0.3, at=(-0.15, -0.15, 0), name="bottom wall (cut)", color=W)
box(1.59, 0.15, 2.5, at=(3.16, -0.15, 0), name="bottom wall, service shaft", color=W)
box(0.07, 0.80, 0.3, at=(1.62, -0.95, 0), name="recess wall, bedroom side (cut)", color=W)
box(0.07, 0.80, 2.5, at=(3.16, -0.95, 0), name="recess wall, shaft side", color=W)
box(0.06, 0.07, 2.5, at=(1.69, -1.02, 0), name="bathroom wall, left of the door", color=W)
box(0.85, 0.07, 0.45, at=(1.75, -1.02, 2.05), name="over the bathroom door", color=W)
box(0.56, 0.07, 2.5, at=(2.60, -1.02, 0), name="bathroom wall, right of the door", color=W)
box(0.15, 0.99, 0.3, at=(-0.15, 0, 0), name="left wall (cut)", color=W)
box(0.15, 1.95, 0.3, at=(-0.15, 3.59, 0), name="left wall (cut) 2", color=W)
box(0.15, 2.60, 0.03, at=(-0.15, 0.99, 0), name="terrace doors", color="#9aa0a6")

# wall run, as on the developer's plan
base_unit(w=120, d=60, h=91, kind="sink", at=(4.15, 0, 0), turn=270)
base_unit(w=60, d=60, h=91, kind="hob_oven", at=(4.15, 1.2, 0), turn=270)
base_unit(w=60, d=60, h=91, kind="drawers", at=(4.15, 1.8, 0), turn=270)
fridge(w=55, d=55, h=120, at=(4.2, 2.45, 0), turn=270)
wall_units(w=240, d=35, h=70, lift=140, at=(4.4, 0, 1.4), turn=270)
box(0.6, 0.74, 2.2, at=(4.15, 3.03, 0), name="cupboard (existing)", color=CAB)
box(0.6, 0.31, 2.2, at=(4.15, 3.83, 0), name="service cupboard (existing)", color=CAB)

# second row: shorter and moved up, the way to the bathroom stays free
base_unit(w=60, d=60, h=91, kind="drawers", worktop=False, at=(2.45, 0.95, 0), turn=90)
base_unit(w=60, d=60, h=91, kind="pan_drawers", worktop=False, at=(2.45, 1.55, 0), turn=90)
box(0.90, 1.30, 0.04, at=(2.15, 0.90, 0.87), name="second row top", color=TOP)
bar_stool(w=40, h=65, at=(1.72, 1.05, 0))
bar_stool(w=40, h=65, at=(1.72, 1.65, 0))

# lounge
tv_unit(w=200, d=40, h=50, at=(1.1, 5.14, 0))
box(1.1, 0.05, 0.65, at=(1.55, 5.42, 0.5), name="TV", color="#222222")
sofa(w=200, d=90, h=82, at=(1.1, 3.05, 0), turn=180)
coffee_table(w=80, d=40, h=42, at=(1.7, 4.30, 0))

dim((3.05, 2.72, 0), (4.15, 2.72, 0), offset=0, text="1.10")
dim((2.75, 0, 0), (2.75, 0.9, 0), offset=0, text="0.90")
dim((2.3, 2.2, 0), (2.3, 3.05, 0), offset=0, text="0.85")
dim((3.3, 3.95, 0), (3.3, 5.14, 0), offset=0, text="1.19")
dim((0, 5.54, 2.5), (4.75, 5.54, 2.5), offset=-0.25, text="4.75")
dim((4.75, 0, 2.5), (4.75, 5.54, 2.5), offset=0.25, text="5.54")
label("entrance", at=(5.3, 5.0, 0))
label("terrace", at=(-0.7, 2.3, 0))
label("bedroom", at=(1.2, -0.6, 0))
label("shower room", at=(2.2, -1.4, 0))
label("second row 1.20 m + 2 stools", at=(0.9, 1.0, 0), to=(2.3, 1.5, 0))
