# Kitchen-diner with a peninsula: a 3.60 x 4.86 m kitchen drawn from its owner's plan to check it,
# in metres. Tall units (a larder, the oven, the fridge) stand on the left, a 3.00 m base run with
# the sink on the kitchen wall up to a riser that stays, and a peninsula 0.92 m deep with a gas hob
# comes off the riser: the aisles are 1.00 and 1.01 m. The round table by the two French windows is
# what the drawing was for: it is 0.69 m from the peninsula's stools and about half a metre from
# the windows. The wall with the 2.50 m French window is cut at 0.3 m to look in.
units("m")
W = "#f3f1ec"
CAB = "#e8e4dc"
TOP = "#c9a27a"
H = 2.7
box(4.6, 4.86, 0.05, at=(-1.0, 0, -0.05), name="floor", color="#d9d2c4 tile")
box(4.83, 0.2, H, at=(-1.0, -0.2, 0), name="kitchen wall", color=W)
box(0.23, 2.66, H, at=(3.60, 0, 0), name="riser (stays)", color=W)
right = box(0.23, 2.20, H, at=(3.60, 2.66, 0), name="wall with the 225 French window", color=W)
window(w=215, h=240, panes=2, at=(3.60, 2.68, 0.02), turn=90, wall=right)
# the wall with the 250 French window, cut low to see in
box(2.05, 0.2, 0.3, at=(-1.0, 4.86, 0), name="radiator wall (cut)", color=W)
box(2.50, 0.2, 0.03, at=(1.05, 4.86, 0), name="French window 250 (threshold)", color="#9ec3d6")
box(0.28, 0.2, 0.3, at=(3.55, 4.86, 0), name="wall (cut)", color=W)
box(0.10, 2.04, H, at=(-0.10, 0, 0), name="wall behind the tall units", color=W)

# tall units: corner column, oven, fridge (2.04 in all)
tall_unit(w=68, d=60, h=215, kind="larder", at=(0, 0, 0), turn=90)
tall_unit(w=68, d=60, h=215, kind="oven", at=(0, 0.68, 0), turn=90)
tall_unit(w=68, d=60, h=215, kind="fridge", at=(0, 1.36, 0), turn=90)
# base run on the kitchen wall, 3.00 to the riser
base_unit(w=60, d=60, h=91, kind="drawers", at=(0.60, 0, 0), turn=180)
base_unit(w=60, d=60, h=91, kind="dishwasher", at=(1.20, 0, 0), turn=180)
base_unit(w=80, d=60, h=91, kind="sink", at=(1.80, 0, 0), turn=180)
base_unit(w=60, d=60, h=91, kind="doors", at=(2.60, 0, 0), turn=180)
base_unit(w=40, d=60, h=91, kind="doors", at=(3.20, 0, 0), turn=180)
wall_units(w=240, d=35, h=70, lift=145, at=(1.20, 0, 1.45), turn=180)
# peninsula 0.92 deep off the riser, gas hob to the work side, two stools on the other
base_unit(w=60, d=60, h=91, kind="drawers", worktop=False, at=(1.61, 1.59, 0))
base_unit(w=80, d=60, h=91, kind="hob_drawers", worktop=False, at=(2.21, 1.59, 0))
base_unit(w=59, d=60, h=91, kind="doors", worktop=False, at=(3.01, 1.59, 0))
box(1.99, 0.92, 0.04, at=(1.61, 1.59, 0.87), name="peninsula top", color=TOP)
bar_stool(w=38, h=65, at=(1.76, 2.50, 0))
bar_stool(w=38, h=65, at=(2.25, 2.50, 0))
# the round table as on the plan: about 1.15 across, centre 1.09 from the 250 window, 1.04 from the 225 one
cylinder(0.25, 0.03, at=(2.56, 3.77, 0), name="table base", color="#3a3a3a")
cylinder(0.05, 0.68, at=(2.56, 3.77, 0.03), name="table leg", color="#3a3a3a")
cylinder(0.575, 0.04, at=(2.56, 3.77, 0.71), name="round table 115", color=TOP)

# chairs at 45 degrees round it: turn takes any angle
chair(at=(1.675, 2.885, 0), turn=135)
chair(at=(2.775, 2.885, 0), turn=225)
chair(at=(1.675, 3.985, 0), turn=45)
chair(at=(2.775, 3.985, 0), turn=315)
dim((1.2, 0.60, 0), (1.2, 1.59, 0), offset=0, text="1.00")
dim((0.60, 1.9, 0), (1.61, 1.9, 0), offset=0, text="1.01")
dim((1.75, 2.51, 0), (1.75, 3.2, 0), offset=0, text="0.69")
dim((2.56, 4.345, 0), (2.56, 4.86, 0), offset=0, text="0.52")
dim((3.135, 3.77, 0), (3.60, 3.77, 0), offset=0, text="0.47")
