[151] Handlauf im Grundriss, Kropfstück an Podesten, Mittellauf-Versatz (midOffset), e2e U-Treppe

Handlauf-Achse für alle Treppenformen mit Geländer aus einer Quelle (stair_rail.rs) für Grundriss und
3D/IFC: 4 cm innen, unter der Bruchhöhe ausgezogen, darüber gestrichelt, ab 1:50/fein Doppellinie,
0.1 mm. Kropfstück statt Sprung an der Podestkante (einen Auftritt weit, ausgerundet). U mit
Mittellauf: Feld midOffset (Modell, Kern, kernel2d, Objekt-Info, IFC-Import). Goldens Musterhaus
komplex (Grundrisse, 3D) nachgeführt.
This commit is contained in:
Claude committed 2026-11-07 13:41:30 +00:00
1 parent 821663e0dc
commit e2952538a3
32 files changed
+1135 -372

No files matched your search

+2 -1
View File
@@ -22,7 +22,7 @@ function ptsAt(f: Float64Array, i: number, n: number): Vec2[] {
return out;
}
/** Treppen-Parameter als 21 Zahlen (Aufbau: `src-tauri/core/src/stair.rs`); fehlend = NaN. */
/** Treppen-Parameter als 22 Zahlen (Aufbau: `src-tauri/core/src/stair.rs`); fehlend = NaN. */
export function encodeStair(s: Stair): Float64Array {
const n = (v: number | undefined) => (v === undefined ? Number.NaN : v);
return Float64Array.of(
@@ -45,6 +45,7 @@ export function encodeStair(s: Stair): Float64Array {
n(s.run1Steps),
n(s.midSteps),
n(s.run2Offset),
n(s.midOffset),
);
}
+1
View File
@@ -853,6 +853,7 @@ export const de = {
"objinfo.stair.landing": "Podesttiefe",
"objinfo.stair.midSteps": "Steigungen Mittellauf",
"objinfo.stair.run2Offset": "Versatz Gegenlauf",
"objinfo.stair.midOffset": "Versatz Mittellauf",
"objinfo.stair.width": "Laufbreite",
"objinfo.stair.column": "Mittelsäule (Radius)",
"objinfo.stair.steps": "Stufenanzahl",
+1
View File
@@ -871,6 +871,7 @@ export const en: Record<TranslationKey, string> = {
"objinfo.stair.landing": "Landing depth",
"objinfo.stair.midSteps": "Risers middle flight",
"objinfo.stair.run2Offset": "Offset of return flight",
"objinfo.stair.midOffset": "Offset of middle flight",
// ── Room attributes (object info panel) ──────────────────────────────────
"objinfo.room.section": "Room",
"objinfo.room.name": "Name",
+2
View File
@@ -221,6 +221,7 @@ describe("IFC-Import als Bauteile: Rundreise Demo-Haus", () => {
["U Halbpodest, Beton", "stair-standard", { shape: "U", start: { x: 0.6, y: 2.3 }, dir: { x: 1, y: 0 }, runLength: 2.4, run2Length: 2.4, turn: -1, gap: 0.15, landingLength: 1.0, stepCount: 15 }],
["U versetzt, massiv", "stair-massiv", { shape: "U", start: { x: 0.6, y: 0.6 }, dir: { x: 1, y: 0 }, runLength: 2.1, run2Length: 1.8, turn: 1, gap: 0.2, landingLength: 1.2, run2Offset: 0.3, run1Steps: 8, stepCount: 15 }],
["U Mittellauf, massiv", "stair-massiv", { shape: "U", start: { x: 0.8, y: 0.4 }, dir: { x: 0, y: 1 }, runLength: 1.5, run2Length: 1.5, turn: -1, gap: 1.2, landingLength: 1.0, midSteps: 4, run1Steps: 5, stepCount: 16 }],
["U Mittellauf versetzt, massiv", "stair-massiv", { shape: "U", start: { x: 0.8, y: 0.4 }, dir: { x: 0, y: 1 }, runLength: 1.5, run2Length: 1.5, turn: 1, gap: 1.5, landingLength: 1.0, midSteps: 4, midOffset: 0.09, run1Steps: 5, stepCount: 16 }],
["gerade mit Podest, Beton", "stair-standard", { shape: "straightLanding", start: { x: 0.5, y: 0.6 }, dir: { x: 1, y: 0 }, runLength: 1.5, run2Length: 1.5, landingLength: 1.0, run1Steps: 7, stepCount: 15 }],
];
for (const [name, typeId, patch] of cases) {
@@ -237,6 +238,7 @@ describe("IFC-Import als Bauteile: Rundreise Demo-Haus", () => {
expect(st.landingLength!).toBeCloseTo(st0.landingLength!, 4);
if (st0.shape === "U") expect(st.gap!).toBeCloseTo(st0.gap!, 4);
expect(st.run2Offset ?? 0).toBeCloseTo(st0.run2Offset ?? 0, 4);
expect(st.midOffset ?? 0, JSON.stringify(st)).toBeCloseTo(st0.midOffset ?? 0, 4);
expect(st.totalRise!).toBeCloseTo(st0.totalRise!, 4);
expect(validateProject(p)).toEqual([]);
});
+5
View File
@@ -3070,6 +3070,11 @@ export type Stair = {
midSteps?: number;
/** [151] Nur U: Versatz des letzten Laufs ins Podest hinein (Meter, entlang Lauf 1; fehlt = 0). */
run2Offset?: number;
/**
* [151] Nur U mit Mittellauf: Verschiebung des Mittellaufs im Treppenauge zur Wendeseite hin (Meter;
* fehlt = mittig). Ergibt ungleiche Viertelpodeste; begrenzt auf die Reserve im Auge.
*/
midOffset?: number;
/** Nur Wendel: Zentrum der Wendeltreppe (Meter). */
center?: Vec2;
/** Nur Wendel: Radius (Meter) von der Mitte zur Lauflinie. */
+7
View File
@@ -1481,6 +1481,13 @@ function StairFlightFields({ stair, host }: { stair: StairInfo; host: ReturnType
unit="" step={1} digits={0} value={stair.midSteps ?? 0}
onCommit={(v) => host.onSetStairPatch({ midSteps: v >= 1 ? Math.round(v) : undefined })}
/>
{(stair.midSteps ?? 0) >= 1 && (
<DimensionField
label={t("objinfo.stair.midOffset")}
min={-10} value={stair.midOffset ?? 0}
onCommit={(v) => host.onSetStairPatch({ midOffset: v !== 0 ? v : undefined })}
/>
)}
<DimensionField
label={t("objinfo.stair.run2Offset")}
min={-10} value={stair.run2Offset ?? 0}
+1 -1
View File
@@ -558,7 +558,7 @@ export interface PanelHostValue {
/** Weist der Treppe einen Treppentyp (Bibliothek) zu; "" löst die Zuweisung. */
onSetStairType: (typeId: string) => void;
/** [151] Lauf-/Podest-Parameter (Lauflängen, Drehsinn, Auge, Podesttiefe, Stufen je Lauf, Versatz). */
onSetStairPatch: (patch: Partial<Pick<Stair, "runLength" | "run2Length" | "turn" | "gap" | "landingLength" | "run1Steps" | "midSteps" | "run2Offset">>) => void;
onSetStairPatch: (patch: Partial<Pick<Stair, "runLength" | "run2Length" | "turn" | "gap" | "landingLength" | "run1Steps" | "midSteps" | "run2Offset" | "midOffset">>) => void;
// ── Raum-Attribute (Object-Info-Panel; nur der selektierte Raum) ────────
/** Setzt den Raum-Namen. */
@@ -1,8 +1,8 @@
viewBox -41.5 0 95 63.6
bytes 86887
bytes 87216
circle 16
g 1
line 314
line 317
path 18
polygon 106
polyline 110
@@ -10,4 +10,4 @@ rect 1
svg 1
text 118
tspan 26
hash e31fd36976484275
hash 3f4ca96852c1460f
@@ -1,8 +1,8 @@
viewBox -41.5 0 95 63.6
bytes 115392
bytes 116056
circle 16
g 1
line 338
line 344
path 39
polygon 268
polyline 126
@@ -10,4 +10,4 @@ rect 1
svg 1
text 121
tspan 32
hash 7f105437f722b9fd
hash a0a331bbe3ce8d24
@@ -1,12 +1,12 @@
viewBox -4.243 0 25.297 23.11
bytes 342211
bytes 342643
circle 14
g 1
line 3323
line 3327
polygon 67
polyline 154
rect 1
svg 1
text 91
tspan 23
hash 7f67bd6361a32d55
hash 9e90cb9a60071446
@@ -1,8 +1,8 @@
viewBox -4.243 0 25.297 23.11
bytes 373018
bytes 373890
circle 14
g 1
line 3346
line 3354
path 21
polygon 228
polyline 169
@@ -10,4 +10,4 @@ rect 1
svg 1
text 91
tspan 24
hash 51e538339931aeba
hash 22915e18849d47c5
@@ -1,13 +1,13 @@
viewBox -10.004 0 31.058 26.958
bytes 53341
bytes 60339
circle 14
g 1
line 166
line 217
path 2
polygon 60
polyline 73
polyline 74
rect 1
svg 1
text 75
tspan 20
hash a49820b978df2cc8
hash 6960933f9c854c8d
@@ -1,13 +1,13 @@
viewBox -10.004 0 31.058 26.958
bytes 62001
bytes 76091
circle 14
g 1
line 171
line 273
path 13
polygon 105
polyline 77
polyline 79
rect 1
svg 1
text 75
tspan 20
hash 195e8bb714b78f17
hash 4b1eab4a5b710c50
+3 -3
View File
@@ -3,13 +3,13 @@ meshes[].color [3] x1952
meshes[].indices [108] x6
meshes[].indices [144] x55
meshes[].indices [156642]
meshes[].indices [1584]
meshes[].indices [180]
meshes[].indices [192] x3
meshes[].indices [348] x6
meshes[].indices [36] x1858
meshes[].indices [372]
meshes[].indices [396]
meshes[].indices [432]
meshes[].indices [60] x9
meshes[].indices [72]
meshes[].indices [84] x2
@@ -21,7 +21,6 @@ meshes[].positions [120]
meshes[].positions [180] x9
meshes[].positions [192]
meshes[].positions [216]
meshes[].positions [222]
meshes[].positions [24] x1826
meshes[].positions [252] x2
meshes[].positions [264]
@@ -32,6 +31,7 @@ meshes[].positions [4746]
meshes[].positions [72] x2
meshes[].positions [78837]
meshes[].positions [78] x55
meshes[].positions [798]
roofLayers [59]
roofLayers[].color [3] x59
roofLayers[].normal [3] x59
@@ -61,4 +61,4 @@ walls[].start [2] x1489
walls[].startCut [4] x1164
walls[].topDrop [2] x103
walls[].topPlane [3] x259
hash 16331bce2f4cf49c
hash e3ce72592786c6f1
+2
View File
@@ -283,6 +283,8 @@ export interface StairInfo {
run1Steps?: number;
midSteps?: number;
run2Offset?: number;
/** [151] U mit Mittellauf: Verschiebung des Mittellaufs im Auge zur Wendeseite hin (fehlt → mittig). */
midOffset?: number;
/** Zugewiesener Treppentyp (Bibliothek, `Stair.typeId`) oder undefined. */
typeId?: string;
/** Geschoss, dem die Treppe zugeordnet ist. */