[26][B2] Dach: Innenhöfe (Roof.holes) und Neigung je Kante (Roof.edgePitchDeg), Objekt-Info, Befehl Dachhof

Modell (Rust, ts-rs): Roof.holes (Ringe) und Roof.edgePitchDeg (je Umrisskante, dann Hofkanten;
null = Giebel, negativ = Standard, Feld fehlt = wie bisher). roof.rs: custom_roof rechnet über
weighted_roof (alle Ringe, Überstand je Kante, Hofringe schrumpfen); ungültige Höfe und Pult
fallen auf das bisherige Dach zurück. Dächer ohne die Felder bleiben bitgleich (CLI-SVG/IFC).
Plan: Hof als Loch der Dachfläche, Hofkanten als Traufe. 3D: Gehrung an Graten zwischen
verschieden geneigten Flächen (Dachschichten bleiben geschlossen).
UI: Kantenliste mit Neigung/Giebel im Objekt-Info, Hofliste mit Entfernen, Befehl "Dachhof".

Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
Claude committed 2026-10-29 01:29:15 +00:00
1 parent 775d756a6c
commit 0986a3ac7b
24 files changed
+1341 -41

No files matched your search

+17
View File
@@ -170,4 +170,21 @@ describe("generatePlan — Dächer (Dachaufsicht)", () => {
false,
);
});
it("Innenhof ([26]): Traufring des Hofs, Dachfläche mit Loch (Brückenkanten), Firstlinien des Hofs", () => {
const court = [
{ x: 1.5, y: 1 },
{ x: 1.5, y: 3 },
{ x: 3, y: 3 },
{ x: 3, y: 1 },
];
const plain = generatePlan(baseProject([roof("R9", "walm", { overhang: 0 })]), "eg", visible);
const withCourt = generatePlan(baseProject([roof("R9", "walm", { overhang: 0, holes: [court] })]), "eg", visible);
// Umriss 4 Kanten + Hof 4 Kanten.
expect(linesOf(plain.primitives, "roof-eaves").length).toBe(4);
expect(linesOf(withCourt.primitives, "roof-eaves").length).toBe(8);
const poly = withCourt.primitives.find((p) => p.kind === "polygon" && p.roofId === "R9");
expect(poly && poly.kind === "polygon" && poly.pts.length).toBeGreaterThan(4);
expect(poly && poly.kind === "polygon" && (poly.noStrokeEdges ?? []).length).toBeGreaterThan(0);
});
});