Single place to convert your 2D floor plans to 3d model (no LLM)
Python
Workflow rules: branches, commits, pull requests and when a change is done
23f20056393dc052b0eb59
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdnew file mode 100644index 0000000..7f3a96c--- /dev/null+++ b/.github/pull_request_template.md@@ -0,0 +1,18 @@+## What the user gets++<!-- One or two sentences, in plain English. -->++## How++<!-- The approach. Name any field of plan.json / meta.json or API call that is added or changed. -->++## Checked++- [ ] `tests/run_all.sh` passes+- [ ] `tests/test_site.mjs` passes (changes to `web/`, `server.py` or `blender/`)+- [ ] Built the sample plan and walked it; screenshot below (changes to `blender/` or `furnish.py`)+- [ ] Houses built before this change still open (if `meta.json` changed)+- [ ] `README.md` / `AGENTS.md` updated (new file, API call or rule)+- [ ] No `jobs/`, `assets/`, client drawings or screenshots of them++## Screenshotdiff --git a/AGENTS.md b/AGENTS.mdindex 329a36a..1304772 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -67,6 +67,33 @@ If you change `examples/make_sample.py`, run it to rewrite the PDF and keep its- **A new API call:** add it in `server.py` (`do_GET` / `do_POST` / `do_DELETE`), and to the table in `README.md`.- **A new texture or model:** add its Poly Haven name to `fetch_assets.py`; never commit asset files.+## Workflow: branches, commits, pull requests++**Before you code**+- One feature or fix per branch, made from an up-to-date `main`: `feat/<name>`, `fix/<name>`, `refactor/<name>`, `docs/<name>`, `ci/<name>`.+- If the change crosses pipeline stages (detect -> plan -> furnish -> gen -> bake -> viewer), first write down which fields of `plan.json` or `meta.json` change. Those two files are the contracts between the stages.+- Find the existing place for the code (the Map and "How to change things" above) before making a new one. A new *job* gets its own module; never a new file just to make another one shorter.++**Contracts**+- A field added to `plan.json` or `meta.json` is written and read in the same pull request, and every reader copes with it missing: houses built earlier must still open (see `meta.roof` in `walk.js`).+- Never rename or reuse a field. Add a new one.++**Commits**+- One logical change per commit, with its test in the same commit.+- The subject says what changed for the person using it, in plain English, at most about 72 characters: `Fix stair headroom on upper floors`, not `fix stuff` or `wip`. Add a body when the why is not obvious.+- Never commit `jobs/`, `assets/`, `.blend` files, secrets, client drawings or screenshots of them.++**Pull requests**+- The title says what the user gets. The description follows `.github/pull_request_template.md`.+- Keep a refactor (moving or renaming code) and a behaviour change in separate pull requests. A refactor must build the sample to the same house: compare `meta.json` and the object list before and after.+- Done means: `tests/run_all.sh` passes; `tests/test_site.mjs` passes after changes to `web/`, `server.py` or `blender/`; after changes to `blender/` or `furnish.py` you built the sample, walked it and put a screenshot in the pull request; `README.md` and this file are updated for a new file, API call or rule; new risky logic (a parser, geometry, a guard) has a test.+- CI must be green. Merge only when the owner says "merge", with a merge commit: `gh pr merge <n> --merge --delete-branch`.++**When something breaks in 3D**+- Reproduce it on the sample plan, or on a copy of the job (`jobs/<new id>/`). Never rebuild someone's own house unless asked.+- Look at it (a screenshot from the walkthrough) before and after the fix. Rules can be right and the room still look wrong.+- Blender exits 0 even when its script fails: check for `GEN OK` in the log.+## Traps- Blender is often installed as a snap: it cannot read `/tmp`. Give it paths inside the project.