Single place to convert your 2D floor plans to 3d model (no LLM)
Python
"""The quantities sheet on the sample drawing, against numbers worked out by hand (feet, walls 10 ft high).
Bedroom 11'x12' (10.75 x 11.75 inside): 45 ft of wall x 10 = 450, less a 3x7 door and a 4x4 window = 413.
Toilet (4.75 x 11.75): 33 ft x 7 ft of tiles = 231, less a 2.5x7 door and 1 ft of a 2 ft vent (6 to 7.5 ft) = 211.5;
painted above 7 ft: 99 less the other half foot of the vent = 98."""
import os, sys
HERE = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.dirname(HERE))
import detect, quantities # noqa: E402
q = quantities.quantities(detect.detect(os.path.join(HERE, "..", "examples", "sample_plan.pdf")))
rooms = {r["name"] + str(round(r["area"])): r for r in q["floors"][0]["rooms"]}
bed, wc = rooms["Bedroom126"], rooms["Toilet56"]
assert (bed["paint"], bed["tiles"]) == (413.0, 0.0), bed
assert (wc["paint"], wc["tiles"]) == (98.0, 211.5), wc
assert sum(o["count"] for o in q["openings"] if o["type"] == "door") == 5
assert sum(o["count"] for o in q["openings"] if o["type"] == "window") == 5
assert abs(sum(q["finishes"].values()) - sum(r["area"] for r in q["floors"][0]["rooms"])) < 1e-6
assert {"name": "Bed", "count": 2} in q["furniture"], q["furniture"]
print("ok quantities: paint, tiles, doors, windows and furniture of the sample")