Single place to convert your 2D floor plans to 3d model (no LLM)
Python
README: macOS and Windows setup, furniture screenshots; BLENDER path override
23f2005639c209c2b6857c
diff --git a/README.md b/README.mdindex c10cf25..40c8d09 100644--- a/README.md+++ b/README.md@@ -49,7 +49,28 @@ git clone <this repo> && cd planto3dOpen the page. It checks Blender, the PDF tools, the viewer library and the materials, and accepts a plan only when all four are in place. The textures and models (about 60 MB, CC0, from [Poly Haven](https://polyhaven.com)) are not in the repository: press **Download materials** on the page, or run `python3 fetch_assets.py`.-Then drop `examples/sample_plan.pdf` on the page.+Then press **Try the sample plan**, or drop your own PDF on the page.++### macOS++```bash+brew install python node poppler+brew install --cask blender+export BLENDER=/Applications/Blender.app/Contents/MacOS/Blender # Blender is not on PATH on a Mac+./run.sh+```++### Windows++Install [Python](https://www.python.org/downloads/), [Node.js](https://nodejs.org), [Blender](https://www.blender.org/download/) and poppler (`winget install oschwartz10612.Poppler`, or `choco install poppler`), then in PowerShell:++```powershell+npm install+$env:BLENDER = "C:\Program Files\Blender Foundation\Blender 4.5\blender.exe" # your Blender version's folder+python server.py+```++`pdftocairo` must be found on `PATH`; the home page tells you if it, or Blender, is missing. The project was developed and tested on Linux; the macOS and Windows steps have not been run.```bash./run.sh --port 9000 --host 0.0.0.0 # reachable from other devices@@ -72,6 +93,12 @@ Then drop `examples/sample_plan.pdf` on the page.| **Sample plan, delete** | "Try the sample plan" on the home page; every plan in the list has Delete || **Blender file** | The house as one `.blend` with every texture packed inside, in a zip |+### Your own furniture++| Furniture models page | A replaced sofa in a built house |+|---|---|+|  |  |+## Build time and accuracyMeasured on a laptop with an RTX 3050 (4 GB).diff --git a/docs/custom_sofa.png b/docs/custom_sofa.pngnew file mode 100644index 0000000..17f6cf5Binary files /dev/null and b/docs/custom_sofa.png differdiff --git a/docs/furniture.png b/docs/furniture.pngnew file mode 100644index 0000000..354d9bbBinary files /dev/null and b/docs/furniture.png differdiff --git a/server.py b/server.pyindex 4d78ef2..f1f887a 100644--- a/server.py+++ b/server.py@@ -11,7 +11,7 @@ HERE = os.path.dirname(os.path.abspath(__file__))JOBS = os.path.join(HERE, "jobs")WEB = os.path.join(HERE, "web")THREE = os.path.join(HERE, "node_modules", "three")-BLENDER = shutil.which("blender") or "blender"+BLENDER = os.environ.get("BLENDER") or shutil.which("blender") or "blender" # set BLENDER to its full path if it is not on PATHMAX_UPLOAD = 200 * 1024 * 1024 # plans are small; recordings sent for MP4 conversion are notBUILD_TIMEOUT = 2 * 3600 # seconds; a high-quality build of a large house takes well under an hourID = re.compile(r"^[a-f0-9]{12}$")