Merge branch 'worktree-agent-ad6caef3a083a697c' into claude/practical-noether-1hb2s1

# Conflicts:
#	src/plan/__golden__/komplex-ansicht-ansicht-sued.txt
#	src/plan/__golden__/komplex-model3d.txt
This commit is contained in:
Claude committed 2026-11-10 11:21:49 +00:00
commit 2e533b719a
35 files changed
+916 -118

No files matched your search

@@ -1,12 +1,11 @@
viewBox -4.2 0 37.045 17.378
bytes 192060
bytes 194058
circle 4
g 1
line 547
path 2
polygon 1024
line 558
polygon 1030
polyline 44
rect 1
svg 1
text 4
hash 03d0f8659228b186
hash af1939f5cc86a341
+5 -6
View File
@@ -1,5 +1,5 @@
meshes [1952]
meshes[].color [3] x1952
meshes [1954]
meshes[].color [3] x1954
meshes[].indices [108] x6
meshes[].indices [144] x55
meshes[].indices [156642]
@@ -7,7 +7,7 @@ meshes[].indices [1584]
meshes[].indices [180]
meshes[].indices [192] x3
meshes[].indices [348] x6
meshes[].indices [36] x1858
meshes[].indices [36] x1860
meshes[].indices [396]
meshes[].indices [564]
meshes[].indices [60] x9
@@ -20,7 +20,7 @@ meshes[].positions [108] x30
meshes[].positions [120]
meshes[].positions [180] x9
meshes[].positions [216]
meshes[].positions [24] x1826
meshes[].positions [24] x1828
meshes[].positions [252] x2
meshes[].positions [264]
meshes[].positions [288] x7
@@ -49,7 +49,6 @@ slabs[].outline [4] x49
slabs[].outline [51] x5
slabs[].outline[] [2] x806
walls [1489]
walls[].arcCenter [2] x832
walls[].color [3] x1489
walls[].end [2] x1489
walls[].endCut [4] x1162
@@ -61,4 +60,4 @@ walls[].start [2] x1489
walls[].startCut [4] x1164
walls[].topDrop [2] x103
walls[].topPlane [3] x259
hash 0f1bbada215a282f
hash f7059eb7178065e2
@@ -1,9 +1,9 @@
viewBox 0.1 0 6.8 7.586
bytes 7959
bytes 8069
g 1
line 7
polygon 57
polygon 58
polyline 6
rect 1
svg 1
hash 2b77ecb148e762fe
hash 3c16e358822ab2fd
+5 -5
View File
@@ -1,10 +1,10 @@
meshes [44]
meshes[].color [3] x44
meshes[].indices [36] x42
meshes [47]
meshes[].color [3] x47
meshes[].indices [36] x45
meshes[].indices [540]
meshes[].indices [60]
meshes[].positions [120]
meshes[].positions [24] x42
meshes[].positions [24] x45
meshes[].positions [360]
roofLayers [2]
roofLayers[].color [3] x2
@@ -28,4 +28,4 @@ walls[].start [2] x59
walls[].startCut [4] x47
walls[].topDrop [2] x6
walls[].topPlane [3] x6
hash d9b519437e8b0665
hash a131fee4170591f5
+13 -5
View File
@@ -142,20 +142,27 @@ describe("generatePlan — Tür-/Fenstertyp-Rahmenband (opening-frame)", () => {
],
{ doorTypes: [doorType], windowTypes: [windowType] },
);
// Tür: ein geschlossenes Rechteck aus 4 Kanten. Fenster: KEIN Band (sonst
// doppeltes, verschachteltes Rechteck über dem windowSymbol-Rahmen).
expect(linesOfClass(p, "opening-frame", "T1").length).toBe(4);
// [105] Drehtür: KEIN Rahmenband quer über die Öffnung mehr, der Blockrahmen steht als Profil mit
// Falz an beiden Leibungen. Fenster: KEIN Band (windowSymbol zeichnet den Rahmen).
expect(linesOfClass(p, "opening-frame", "T1").length).toBe(0);
expect(linesOfClass(p, "opening-frame", "F1").length).toBe(0);
const profiles = generatePlan(p, "eg", visible, undefined, "mittel").primitives.filter((pr) => pr.kind === "polygon" && pr.openingId === "T1" && (pr as { stroke?: string }).stroke !== "none");
expect(profiles.length).toBeGreaterThanOrEqual(2);
// Schiebetür behält das Rahmenband (Rechteck aus 4 Kanten).
const slide = project([{ ...baseDoor, typeId: "dt-s" }], { doorTypes: [{ ...doorType, id: "dt-s", kind: "schiebe" }] });
expect(linesOfClass(slide, "opening-frame", "T1").length).toBe(4);
});
it("Blockrahmen-Tür zeichnet eine kräftigere Linie als eine Zargen-Tür", () => {
const zargeDoor: DoorType = { ...doorType, id: "dt-zarge", frameKind: "zarge" };
// Rahmenband nur noch bei Schiebetüren ([105]: Drehtüren mit Profil an den Leibungen).
const blockDoor: DoorType = { ...doorType, kind: "schiebe" };
const zargeDoor: DoorType = { ...blockDoor, id: "dt-zarge", frameKind: "zarge" };
const p = project(
[
{ ...baseDoor, id: "T1", typeId: "dt1" },
{ ...baseDoor, id: "T2", position: 3.0, typeId: "dt-zarge" },
],
{ doorTypes: [doorType, zargeDoor] },
{ doorTypes: [blockDoor, zargeDoor] },
);
const blockWeight = linesOfClass(p, "opening-frame", "T1")[0].weightMm;
const zargeWeight = linesOfClass(p, "opening-frame", "T2")[0].weightMm;
@@ -203,6 +210,7 @@ describe("generatePlan — Schichteinzug (insetFromFace/insetFace)", () => {
// Am Tür-Zargenband geprüft (das Fenster nutzt jetzt windowSymbol statt Band).
const insetDoor: DoorType = {
...doorType,
kind: "schiebe",
id: "dt-inset",
frameKind: "zarge",
insetFromFace: 0.05,
+9 -9
View File
@@ -1197,10 +1197,10 @@ describe("VW-fein-Öffnungsdetails: Fensterbank, DIN-Symbole, verschachtelte Fl
for (const mesh of meshes) for (let i = 2; i < mesh.positions.length; i += 3) m = Math.max(m, mesh.positions[i]);
return m;
};
// Vollblatt (glatt): genau EIN Blatt-Panel, bis unter den Sturz (2.0 − fw).
// Vollblatt (glatt): genau EIN Blatt-Panel, bis in den Falz der Zarge (2.0 − fw + 1.5 cm Falz, [105]).
const solid = projectToModel3d(doorProject(baseDoor)).meshes.filter(isLeaf);
expect(solid.length).toBe(1);
expect(zTop(solid)).toBeCloseTo(2.0 - 0.06, 6);
expect(zTop(solid)).toBeCloseTo(2.0 - 0.06 + 0.015, 6);
// Auch bei grob vorhanden (Füllung ist kein „fein"-Detail).
expect(projectToModel3d(doorProject(baseDoor), { detail: "grob" }).meshes.filter(isLeaf).length).toBe(1);
// Teilverglasung (glas, glazingRatio 0.4): Blatt nur im unteren 60%-Rest.
@@ -1208,7 +1208,7 @@ describe("VW-fein-Öffnungsdetails: Fensterbank, DIN-Symbole, verschachtelte Fl
doorProject({ ...baseDoor, id: "door-leaf-glas", leafStyle: "glas", glazingRatio: 0.4 }),
).meshes.filter(isLeaf);
expect(glazed.length).toBe(1);
const fieldTop = 2.0 - 0.06;
const fieldTop = 2.0 - 0.06 + 0.015; // [105] bis in den Falz
expect(zTop(glazed)).toBeCloseTo(fieldTop - 0.4 * fieldTop, 6);
// Ganzglastür (glazingRatio 1): kein blinder Rest -> kein Blatt.
expect(
@@ -1313,13 +1313,13 @@ describe("VW-fein-Öffnungsdetails: Fensterbank, DIN-Symbole, verschachtelte Fl
});
const frames = (frameKind: "zarge" | "blockrahmen"): number =>
projectToModel3d(doorProject(frameKind)).meshes.filter(isFrame).length;
// Zarge: Basis-Rahmen (2 Pfosten + Sturz, kein threshold) + 2 Wandseiten × 3
// Bekleidungs-Riegel = 3 + 6 = 9. Blockrahmen: nur Basis = 3.
expect(frames("blockrahmen")).toBe(3);
expect(frames("zarge")).toBe(9);
// Umgriff nur mittel/fein, nicht grob.
// [105] Profil mit Falz an beiden Leibungen und am Sturz (je 2 Quader: Rahmen vor/im Falz) —
// Blockrahmen 3 × 2 = 6; Zarge zusätzlich die Bekleidung (Umgriff) auf beiden Wandseiten: 6 + 6 = 12.
expect(frames("blockrahmen")).toBe(6);
expect(frames("zarge")).toBe(12);
// Zarge/Umgriff nur mittel/fein, nicht grob.
expect(projectToModel3d(doorProject("zarge"), { detail: "grob" }).meshes.filter(isFrame).length).toBe(0);
expect(projectToModel3d(doorProject("zarge"), { detail: "mittel" }).meshes.filter(isFrame).length).toBe(9);
expect(projectToModel3d(doorProject("zarge"), { detail: "mittel" }).meshes.filter(isFrame).length).toBe(12);
});
it("Echtes Schwellenprofil: nur Tür mit `threshold`, eigenes SILL_RGB-Band über die Wanddicke", () => {