In "Do the bed and desk overlap? Working it out for a 5.72 m² room" I mentioned that the planner's furniture total counts the 0.035 m² overlap twice. I knew about it and let it be, but it also meant the planner showed less free floor than there really was whenever pieces overlapped. I've fixed it and checked the new figures on five layouts.

Two overlapping pieces

Bed 110 × 200 = 22,000 cm²
Desk 105 × 50 = 5,250 cm²
Added up 27,250 cm² = 2.725 m²
Overlap 7 × 50 = 350 cm²
Floor actually covered 27,250 − 350 = 26,900 cm² = 2.69 m²

The old planner showed the first total; the new one shows the last line. The label on screen changed from "Furniture" to "Floor covered" to match.

When three overlap

Two tables and a shelf laid over each other make the difference bigger. Added up they come to 3.00 m², and 0.875 m² of that was counted more than once. By hand you'd subtract each pairwise overlap and then add back the part all three share. The planner instead cuts the floor into small pieces along the furniture edges and checks each piece.

Table100×100Table100×100Shelf50×200DOOR 80300300
3Three pieces overlapping each other

A shelf outside the room, a column in the wardrobe

When part of a shelf sticks out of the room, that part (0.14 m²) is listed separately. In the bedroom where a column overlaps a wardrobe corner, the column's 0.16 m² is added but the shared bit is counted once, leaving 6.295 m² of free floor. All five layouts came out right.

Free floor isn't all usable

The spot where a chair rolls back or a door swings still counts as free. Area can't tell those apart, so experiment 005 keeps the area fixed and looks at the walking routes instead. Space shared by height, like storage under a bed, isn't separated out here either.

Data

EXP-004Calculated only, no room was measuredNew calculation v2.0.0 · old v1.0.0Checked 5/5 PASS

LayoutPlain sumOld planner showedFloor actually covered
answer / new
Counted twiceOutsideColumnFree floor
answer / new
Result
Bed and desk overlap by 7 × 50 cm2.725 m²2.725 m²2.69 m² / 2.69 m²0.035 m²0.00 m²0.00 m²3.03 m² / 3.03 m²PASS
Three pieces overlapping each other3.00 m²3.00 m²2.125 m² / 2.125 m²0.875 m²0.00 m²0.00 m²6.875 m² / 6.875 m²PASS
A shelf partly outside the room3.005 m²2.865 m²2.83 m² / 2.83 m²0.035 m²0.14 m²0.00 m²2.89 m² / 2.89 m²PASS
Bedroom with no overlaps4.125 m²4.125 m²4.125 m² / 4.125 m²0.00 m²0.00 m²0.00 m²6.375 m² / 6.375 m²PASS
A column overlapping the wardrobe4.125 m²4.125 m²4.125 m² / 4.125 m²0.00 m²0.00 m²0.16 m²6.295 m² / 6.295 m²PASS

Where the right answers came from. A separate Python program, not the planner's code, cut the room into 1 cm × 1 cm cells and checked each one against every piece of furniture. All coordinates are whole centimeters, so the count is the exact area.

Open in the planner

Running these three lines in the site's repository rebuilds the files. If the calculation code changes and these files aren't rebuilt, the site won't build, so the numbers on this page can't drift away from what the planner does.

python tools/scenarios.py --dump
node tools/run_experiments.mjs
python tools/verify_experiments.py