Dach: Mansarden-Untertypen (Giebel/Walm/Zelt) + parametrierbarer Knick

Bisher gab es nur die Giebel-Mansarde (2-seitig). Neu über Roof.mansardType:
- 'giebel' (Default): Mansard-Satteldach, Giebel an den Enden (wie bisher)
- 'walm': allseitige Mansarde (Sockel + oberer Walm, kein Giebel) — 8 Flächen
- 'zelt': allseitige Mansarde zur flachen Spitze — 8 Flächen, kein First
Knicklage jetzt parametrierbar (Roof.mansardKneeRatio, Default 0.4 der halben
Spannweite). Dach-Panel: Mansard-Art-Dropdown + Knicklage-Feld (nur bei Mansarde).
+4 Geometrie-Tests (Ratio, Walm-/Zelt-Flächen/Grate).

Nebenbei: Fenster-Dialog-Labels klarer als 'Einbaulage ab / Abstand von Kante'
(Nutzer: wo sitzt das Fenster in der Aussparung, ab Innen-/Aussenkante + wieviel).
666/666 grün.
This commit is contained in:
2026-07-10 01:53:55 +02:00
parent 9a38636bf2
commit bfb80b363b
7 changed files with 201 additions and 24 deletions
+23
View File
@@ -523,6 +523,29 @@ export function RoofSection({
numField("objinfo.roof.pitchUpper", roof.pitchUpperDeg ?? roof.pitchDeg / 2, 1, (v) =>
host.onSetRoofPatch({ pitchUpperDeg: Math.max(0, Math.min(85, v)) }),
)}
{/* Mansarde-Untertyp (Giebel/Walm/Zelt) + Knicklage. */}
{roof.shape === "mansarde" && (
<div className="objinfo-field">
<span className="objinfo-flabel">{t("objinfo.roof.mansardType")}</span>
<Dropdown
value={roof.mansardType ?? "giebel"}
onChange={(v) =>
host.onSetRoofPatch({ mansardType: v as "giebel" | "walm" | "zelt" })
}
options={[
{ value: "giebel", label: t("objinfo.roof.mansard.giebel") },
{ value: "walm", label: t("objinfo.roof.mansard.walm") },
{ value: "zelt", label: t("objinfo.roof.mansard.zelt") },
]}
title={t("objinfo.roof.mansardType")}
width={130}
/>
</div>
)}
{roof.shape === "mansarde" &&
numField("objinfo.roof.mansardKnee", (roof.mansardKneeRatio ?? 0.4) * 100, 1, (v) =>
host.onSetRoofPatch({ mansardKneeRatio: Math.max(5, Math.min(49, v)) / 100 }),
)}
{/* Grundriss-Masse (Breite/Tiefe): das Umriss-Rechteck neu bilden, die
untere/linke Ecke (minX/minY) bleibt fix. */}