Skip to content

Single place to convert your 2D floor plans to 3d model (no LLM)

Python
889 B
Raw Blame
#!/usr/bin/env bash
# detector on the sample drawing (and on the private fixtures when present), its quantities sheet, furniture clashes on the sample and on
# every detected plan, and stair / wall walking on every built house.  The browser test is separate: tests/test_site.mjs
cd "$(dirname "$0")/.."
set -e
python3 tests/test_sample.py
python3 tests/test_detect.py
python3 tests/test_server.py
python3 tests/test_quantities.py
python3 tests/test_themes.py
python3 tests/test_furnish.py
python3 detect.py examples/sample_plan.pdf /tmp/planto3d_sample.json > /dev/null
for p in /tmp/planto3d_sample.json jobs/*/plan.json; do
  [ -f "$p" ] || continue
  out=$(python3 furnish.py "$p")
  echo "$out" | grep -q CLASH && { echo "$p"; echo "$out"; exit 1; } || echo "no furniture clashes: $p"
done
for m in jobs/*/meta.json; do [ -f "$m" ] && node tests/test_walk.mjs "$m"; done
echo ALL PASS