Commit 27705e6
Fix furniture scale using measured FBX bounding boxes (#15)
Loaded each hospital FBX model in Playwright, measured its bounding
box, and calculated the exact scale factor to fit each equipment type
within its target tile footprint:
bed: 1403.7 mm → 0.00085 (1.2 tiles)
chair: 371.6 mm → 0.00135 (0.5 tiles)
waiting_chair: 1826.7 mm → 0.00044 (0.8 tiles)
computer: 328.5 mm → 0.00122 (0.4 tiles)
medical_equipment:327.8 mm → 0.00122 (0.4 tiles)
wheelchair: 646.7 mm → 0.00093 (0.6 tiles)
diagnostic_table: 1244.8 mm → 0.00080 (1.0 tiles)
The models are authored in millimetres (not centimetres as previously
assumed), so the previous scale of 0.006 was ~7x too large for beds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6521788 commit 27705e6
5 files changed
Lines changed: 20 additions & 11 deletions
File tree
- environment/react_frontend
- public/models/hospital
- src/components
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
75 | 84 | | |
76 | 85 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
84 | 93 | | |
85 | 94 | | |
86 | 95 | | |
| |||
0 commit comments