[148] Flachdach: Attika (parapetHeight/Width/ComponentId) in 3D, Schnitt, Ansicht, Grundriss, Objekt-Info

Neues Modul roof_parapet.rs: Ringkörper auf dem Traufumriss des Flachdachs (kurze Kanten werden
zusammengezogen, damit der Innenring nicht umklappt). 3D über emit_roofs, Schnitt mit Schraffur des
Bauteils, Ansicht über die Dach-Sichtflächen, Grundriss-Innenkante auf der Dach-Ebene. Musterhaus
komplex: Erker mit Betonattika. Gefälle der Dachhaut bleibt offen (TODO).
This commit is contained in:
Claude committed 2026-11-11 05:04:25 +00:00
1 parent 715ced972c
commit e0bc601282
21 files changed
+350 -21

No files matched your search

+4
View File
@@ -502,6 +502,10 @@ export const de = {
"objinfo.roof.depth": "Tiefe (m)",
"objinfo.roof.overhang": "Überstand Traufe (m)",
"objinfo.roof.overhangGable": "Überstand Ortgang (m)",
"objinfo.roof.parapetHeight": "Attika Höhe (m)",
"objinfo.roof.parapetWidth": "Attika Breite (m)",
"objinfo.roof.parapetMaterial": "Attika Material",
"objinfo.roof.parapetMaterial.none": "Wandfarbe",
"objinfo.roof.thickness": "Dachdicke (m)",
"objinfo.roof.baseElevation": "Traufhöhe (m)",
"objinfo.roof.ridgeHeight": "Firsthöhe",
+4
View File
@@ -500,6 +500,10 @@ export const en: Record<TranslationKey, string> = {
"objinfo.roof.depth": "Depth (m)",
"objinfo.roof.overhang": "Eaves overhang (m)",
"objinfo.roof.overhangGable": "Rake overhang (m)",
"objinfo.roof.parapetHeight": "Parapet height (m)",
"objinfo.roof.parapetWidth": "Parapet width (m)",
"objinfo.roof.parapetMaterial": "Parapet material",
"objinfo.roof.parapetMaterial.none": "Wall colour",
"objinfo.roof.thickness": "Roof thickness (m)",
"objinfo.roof.baseElevation": "Eaves height (m)",
"objinfo.roof.ridgeHeight": "Ridge height",
+2
View File
@@ -442,6 +442,8 @@ const roofs: NonNullable<Project["roofs"]> = [
{
id: "dach-erker", type: "roof", floorId: "og", categoryCode: "31", outline: [P(15 + HA, 5 - 2.2), ...arcPts(ERKER_C, 2 + HA + 0.15, -Math.PI / 2 + 0.09, Math.PI / 2 - 0.09, 14), P(15 + HA, 5 + 2.2)],
shape: "flach", pitchDeg: 0, overhang: 0, ridgeAxis: "x", thickness: 0.46, roofTypeId: "mk-rt-flach",
// Attika ([148]): Betonbrüstung 50 cm über der Dachhaut.
parapetHeight: 0.5, parapetWidth: 0.2, parapetComponentId: "std-c-stahlbeton",
},
{
id: "dach-carport", type: "roof", floorId: "eg", categoryCode: "31", outline: rect(-6.6, 10.6, -0.9, 16.2),
+9
View File
@@ -3078,6 +3078,15 @@ export type Roof = {
surfacePatternOffset?: Vec2;
/** Gauben/Lukarnen ([G5]) in den Dachflächen dieses Dachs. Fehlt ⇒ keine. */
dormers?: Array<Dormer>;
/**
* Attika ([148]): Höhe über der Dachhaut (Meter) am Rand eines Flachdachs, umlaufend auf dem Dachumriss
* (mit Überstand). Fehlt oder 0 ⇒ keine Attika. Wirkt nur bei Flachdach.
*/
parapetHeight?: number;
/** Attika: Breite (Meter, nach innen vom Dachrand); fehlt ⇒ 0.2. */
parapetWidth?: number;
/** Attika: Bauteil/Material (Farbe, Schnittschraffur); fehlt ⇒ Wandfarbe ohne Schraffur. */
parapetComponentId?: string;
};
/**
+27
View File
@@ -295,6 +295,33 @@ export function RoofSection({
0.05,
(v) => host.onSetRoofPatch({ overhangGable: Math.max(0, v) }),
)}
{/* Attika ([148]): Brüstung am Rand des Flachdachs; Höhe 0 = keine. */}
{roof.shape === "flach" && (
<>
{numField("objinfo.roof.parapetHeight", roof.parapetHeight ?? 0, 0.05, (v) =>
host.onSetRoofPatch({ parapetHeight: v > 0 ? v : undefined }),
)}
{(roof.parapetHeight ?? 0) > 0 &&
numField("objinfo.roof.parapetWidth", roof.parapetWidth ?? 0.2, 0.01, (v) =>
host.onSetRoofPatch({ parapetWidth: Math.max(0.02, v) }),
)}
{(roof.parapetHeight ?? 0) > 0 && (
<div className="objinfo-field">
<span className="objinfo-flabel">{t("objinfo.roof.parapetMaterial")}</span>
<Dropdown
value={roof.parapetComponentId ?? ""}
onChange={(v) => host.onSetRoofPatch({ parapetComponentId: v || undefined })}
options={[
{ value: "", label: t("objinfo.roof.parapetMaterial.none") },
...storeProject.components.map((c) => ({ value: c.id, label: c.name })),
]}
title={t("objinfo.roof.parapetMaterial")}
width={130}
/>
</div>
)}
</>
)}
{numField("objinfo.roof.thickness", roof.thickness, 0.02, (v) =>
host.onSetRoofPatch({ thickness: Math.max(0.01, v) }),
)}
@@ -1,12 +1,12 @@
viewBox -4.2 0 37.045 17.378
bytes 196335
bytes 197406
circle 4
g 1
line 437
line 436
path 2
polygon 1045
polyline 154
polygon 1053
polyline 156
rect 1
svg 1
text 4
hash 673ad0ec9c6ff4d1
hash 1b43e968eef4f52b
@@ -1,13 +1,13 @@
viewBox -13.448 0 38.615 33.813
bytes 44888
bytes 45131
circle 14
g 1
line 113
path 9
path 10
polygon 52
polyline 98
rect 1
svg 1
text 86
tspan 19
hash 63a214a67a23917f
hash fc1d92936073ff61
@@ -1,13 +1,13 @@
viewBox -12.974 0 37.808 33.406
bytes 353699
bytes 353944
circle 14
g 1
line 3256
path 37
path 38
polygon 152
polyline 167
rect 1
svg 1
text 85
tspan 18
hash 02d3fdb73b319310
hash 23033f74efa8dac1
+5 -4
View File
@@ -1,5 +1,5 @@
meshes [1957]
meshes[].color [3] x1957
meshes [1958]
meshes[].color [3] x1958
meshes[].indices [108] x6
meshes[].indices [11376]
meshes[].indices [12888]
@@ -9,6 +9,7 @@ meshes[].indices [1584]
meshes[].indices [180]
meshes[].indices [192] x3
meshes[].indices [348] x6
meshes[].indices [360]
meshes[].indices [36] x1860
meshes[].indices [396]
meshes[].indices [564]
@@ -21,7 +22,7 @@ meshes[].indices [96] x6
meshes[].positions [1044] x6
meshes[].positions [108] x30
meshes[].positions [120]
meshes[].positions [180] x9
meshes[].positions [180] x10
meshes[].positions [216]
meshes[].positions [24] x1828
meshes[].positions [252] x2
@@ -67,4 +68,4 @@ walls[].start [2] x1492
walls[].startCut [4] x1107
walls[].topDrop [2] x115
walls[].topPlane [3] x271
hash cb17b0d0419be35e
hash a7e38b2a054609be
+6
View File
@@ -72,6 +72,12 @@ export interface RoofInfo {
overhang: number;
/** Dachüberstand am Ortgang (Giebelseite, Meter); fehlt ⇒ = Traufüberstand. */
overhangGable?: number;
/** Attika ([148]): Höhe über der Dachhaut (Flachdach); fehlt ⇒ keine. */
parapetHeight?: number;
/** Attika: Breite (m); fehlt ⇒ 0.2. */
parapetWidth?: number;
/** Attika: Bauteil/Material (Farbe, Schnittschraffur). */
parapetComponentId?: string;
/** Firstrichtung entlang X oder Y. */
ridgeAxis: "x" | "y";
/** Dachdicke (Meter). */