room settings button: centroid pull breaks the plateau tie

The inscribed-circle criterion is FLAT along the long axis of any elongated
room — every midline point fits the same circle — and a plain argmax took
the first plateau sample: left of centre on the owner's kitchen-living
room, above centre in the sauna. The score now subtracts a soft pull
toward the area centroid (shoelace-weighted): on the plateau the nearest-
to-centroid point wins, while real clearance differences still dominate,
so the point never wanders into a thinner limb of an L.

Verified on a replica of the owner's floor: kitchen slab centre within a
few units, sauna dead-centre both axes. Units: wide and tall rectangles
centre on both axes; the L keeps to its slab near the centroid x.
This commit is contained in:
Matysh
2026-07-29 14:00:52 +03:00
parent 9eec856d50
commit fa15598e67
4 changed files with 111 additions and 78 deletions
+35 -35
View File
File diff suppressed because one or more lines are too long