|
|
|
|
|
by ReleaseCandidat
774 days ago
|
|
The measurements in the default(?) plan look off: cabinet 200cm x 92cm top 3cm bottom 15cm scale 5
50cm * * 20cm
* drawer door door drawer
* drawer ^ ^ drawer
* ^ ^ > drawer
* > drawer drawer <
The program suggests 4 x 18.6cm = 74.4cm, but the actual remaining height is 74cm (92 - 15 - 3). Changing the scale from 5 to 4 or 6 yields the correct value of 18.5cm |
|
The scale is there just to make things look nice in the browser and/or in print format, and it can slightly corrupt the numbers as you noticed, especially when it's a small or odd scale (try setting it to 1 and watch it break horribly). I guess a few ways to get rid of the scale would be to introduce variable font sizes, make text not be counted for sizing the boxes, or automatically finding the "right" scale number with code. But like I said in the post:
> I guess making it more “serious” would have been possible, but in this case I just wanted to get my furniture designed fast, and keeping the code simple and small helped in that.
See: https://github.com/alnvdl/squareplanner/blob/01bdcb050ce58a4...
I also got these designs printed to follow during the construction, so I just picked scale numbers arbitrarily in a way that made them look good in the browser and fit in the paper size. So "portability" and pleasing visuals were more important than accuracy.
And of course, I could cheat like that because in my particular case any imprecisions got flagged by the real 3D CAD used by the furniture company to formalize the project :)