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

# Conflicts:
#	TODO.md
This commit is contained in:
Claude committed 2026-11-07 17:32:32 +00:00
commit a2b65605e7
42 files changed
+1090 -180

No files matched your search

+13 -13
View File
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.6725 0 6.345 5.345" width="63.45mm" height="53.45mm">
<rect x="-0.6725" y="0" width="6.345" height="5.345" fill="#ffffff"/>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1.96125 0 8.9225 7.4725" width="89.225mm" height="74.725mm">
<rect x="-1.96125" y="0" width="8.9225" height="7.4725" fill="#ffffff"/>
<g stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4">
<polygon points="0,4.6725 5,4.6725 5,0.6725 0,0.6725" fill="none" stroke="none" stroke-width="0"/>
<polygon points="0.1725,4.5 4.8275,4.5 4.8275,0.845 0.1725,0.845" fill="#6b728000" stroke="#6b7280" stroke-width="0.002"/>
<text x="0.98291" y="2.31972" font-family="Inter, sans-serif" text-anchor="start"><tspan font-size="0.3528" fill="#111111">Wohnen</tspan></text>
<text x="2.5" y="2.77833" font-family="Inter, sans-serif" text-anchor="middle"><tspan font-size="0.28222" fill="#111111">17.01 m²</tspan></text>
<text x="2.5" y="3.23694" font-family="Inter, sans-serif" text-anchor="middle"><tspan font-size="0.28222" fill="#111111">HNF · Hauptnutzfläche</tspan></text>
<polygon points="-0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5" fill="#0f0f0f" stroke="none"/>
<polygon points="-0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1.7,4.845 3,4.845 3,4.5 1.7,4.5" fill="#0f0f0f" stroke="#1a1a1a" stroke-width="0.025"/>
<polygon points="4,4.845 5.1725,4.845 4.8275,4.5 4,4.5" fill="#0f0f0f" stroke="none"/>
<polygon points="5.1725,4.845 5.1725,0.5 4.8275,0.845 4.8275,4.5" fill="#0f0f0f" stroke="none"/>
<polygon points="5.1725,0.5 4.4,0.5 4.4,0.845 4.8275,0.845" fill="#0f0f0f" stroke="none"/>
<polygon points="4,4.845 5.1725,4.845 4.8275,4.5 4,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="5.1725,4.845 5.1725,0.5 4.8275,0.845 4.8275,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="5.1725,0.5 4.4,0.5 4.4,0.845 4.8275,0.845" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="4.8275,0.845 4.8275,4.5 4,4.5 4,4.845 5.1725,4.845 5.1725,0.5 4.4,0.5 4.4,0.845" fill="none" stroke="#1a1a1a" stroke-width="0.025"/>
<polygon points="3,0.5 -0.1725,0.5 0.1725,0.845 3,0.845" fill="#0f0f0f" stroke="none"/>
<polygon points="-0.1725,0.5 -0.1725,4.845 0.1725,4.5 0.1725,0.845" fill="#0f0f0f" stroke="none"/>
<polygon points="3,0.5 -0.1725,0.5 0.1725,0.845 3,0.845" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="-0.1725,0.5 -0.1725,4.845 0.1725,4.5 0.1725,0.845" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="0.1725,0.845 3,0.845 3,0.5 -0.1725,0.5 -0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5" fill="none" stroke="#1a1a1a" stroke-width="0.025"/>
<polygon points="2.475,4.5 2.475,0.845 2.325,0.845 2.325,4.5" fill="#0f0f0f" stroke="none"/>
<polygon points="2.475,4.5 2.475,0.845 2.325,0.845 2.325,4.5" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<line x1="2.475" y1="4.5" x2="2.475" y2="0.845" stroke="#1a1a1a" stroke-width="0.025"/>
<line x1="2.325" y1="0.845" x2="2.325" y2="4.5" stroke="#1a1a1a" stroke-width="0.025"/>
<polygon points="3.2,4.2725 4.2,4.2725 4.2,1.0725 3.2,1.0725" fill="none" stroke="none" stroke-width="0"/>
@@ -43,21 +43,21 @@
<polyline points="-1,2.9725 -1,2.3725 -1,1.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
<line x1="-1" y1="1.7725" x2="-0.85" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
<line x1="-1" y1="1.7725" x2="-1.15" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
<text x="-1.15" y="1.2825" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.15 1.2825)">A</text>
<polyline points="6,2.9725 6,2.3725 6,1.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
<line x1="6" y1="1.7725" x2="6.15" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
<line x1="6" y1="1.7725" x2="5.85" y2="2.0125" stroke="#1f242c" stroke-width="0.025"/>
<text x="5.85" y="1.2825" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.85 1.2825)">A</text>
<polygon points="-1,2.3725 6,2.3725 6,2.9725 -1,2.9725" fill="none" stroke="none" stroke-width="0"/>
<line x1="-1" y1="6.6725" x2="6" y2="6.6725" stroke="#1f242c" stroke-width="0.018" stroke-dasharray="0.6 0.15 0.04 0.15" stroke-dashoffset="0.09"/>
<polyline points="-1,6.9725 -1,6.3725 -1,5.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
<line x1="-1" y1="5.7725" x2="-0.85" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
<line x1="-1" y1="5.7725" x2="-1.15" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
<text x="-1.15" y="5.2825" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.15 5.2825)">Süd</text>
<polyline points="6,6.9725 6,6.3725 6,5.7725" fill="none" stroke="#1f242c" stroke-width="0.025"/>
<line x1="6" y1="5.7725" x2="6.15" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
<line x1="6" y1="5.7725" x2="5.85" y2="6.0125" stroke="#1f242c" stroke-width="0.025"/>
<text x="5.85" y="5.2825" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.85 5.2825)">Süd</text>
<polygon points="-1,6.3725 6,6.3725 6,6.9725 -1,6.9725" fill="none" stroke="none" stroke-width="0"/>
<text x="-1.1725" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.1725 1.5925)">A</text>
<text x="5.8275" y="1.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.8275 1.5925)">A</text>
<text x="-1.46125" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 -1.46125 5.5925)">Süd</text>
<text x="5.53875" y="5.5925" font-size="0.5" fill="#1f242c" font-family="sans-serif" transform="rotate(0 5.53875 5.5925)">Süd</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

+31 -31
View File
@@ -2,37 +2,37 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0.1 0 6.8 7.58564" width="68mm" height="75.85641mm">
<rect x="0.1" y="0" width="6.8" height="7.58564" fill="#ffffff"/>
<g stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4">
<polygon points="5.8275,4.78564 5.8425,4.78564 5.8425,7.08564 5.8275,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="5.8425,4.78564 5.9925,4.78564 5.9925,7.08564 5.8425,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="5.8425,1.88564 5.9925,1.88564 5.9925,4.58564 5.8425,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="6,4.48564 6.1525,4.48564 6.1525,7.08564 6,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="5.9925,4.78564 6,4.78564 6,7.08564 5.9925,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="5.9925,4.54564 6,4.54564 6,4.58564 5.9925,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="6.1525,1.88564 6.1725,1.88564 6.1725,7.08564 6.1525,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="0.8275,1.88564 0.8475,1.88564 0.8475,7.08564 0.8275,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="0.8475,4.48564 1,4.48564 1,7.08564 0.8475,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1,4.78564 1.0075,4.78564 1.0075,7.08564 1,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1,4.54564 1.0075,4.54564 1.0075,4.58564 1,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1.0075,4.78564 1.1575,4.78564 1.1575,7.08564 1.0075,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1.0075,1.88564 1.1575,1.88564 1.1575,4.58564 1.0075,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1.1575,4.78564 1.1725,4.78564 1.1725,7.08564 1.1575,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="3.325,4.78564 3.34,4.78564 3.34,7.08564 3.325,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="3.34,4.78564 3.46,4.78564 3.46,7.08564 3.34,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="3.34,4.48564 3.46,4.48564 3.46,4.58564 3.34,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="3.46,4.78564 3.475,4.78564 3.475,7.08564 3.46,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="5.8275,1.88564 5.8425,1.88564 5.8425,4.48564 5.8275,4.48564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="5.9925,1.88564 6.1525,1.88564 6.1525,4.48564 5.9925,4.48564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="0.8475,1.88564 1.0075,1.88564 1.0075,4.48564 0.8475,4.48564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1.1575,1.88564 1.1725,1.88564 1.1725,4.48564 1.1575,4.48564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1,4.48564 1.0075,4.48564 1.0075,4.54564 1,4.54564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1.1575,4.48564 3.34,4.48564 3.34,4.54564 1.1575,4.54564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="3.46,4.48564 5.8425,4.48564 5.8425,4.54564 3.46,4.54564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="5.9925,4.48564 6,4.48564 6,4.54564 5.9925,4.54564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1.1575,4.54564 3.34,4.54564 3.34,4.58564 1.1575,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="3.46,4.54564 5.8425,4.54564 5.8425,4.58564 3.46,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="1,4.58564 6,4.58564 6,4.78564 1,4.78564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="0.6,0.5 6.4,0.5 6.4,0.73094 0.6,0.73094" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="4.2,5.69897 4.2,5.99364 5.2,5.99364 5.2,5.69897" fill="#0f0f0f" stroke="none" stroke-width="0"/>
<polygon points="5.8275,4.78564 5.8425,4.78564 5.8425,7.08564 5.8275,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="5.8425,4.78564 5.9925,4.78564 5.9925,7.08564 5.8425,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="5.8425,1.88564 5.9925,1.88564 5.9925,4.58564 5.8425,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="6,4.48564 6.1525,4.48564 6.1525,7.08564 6,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="5.9925,4.78564 6,4.78564 6,7.08564 5.9925,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="5.9925,4.54564 6,4.54564 6,4.58564 5.9925,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="6.1525,1.88564 6.1725,1.88564 6.1725,7.08564 6.1525,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="0.8275,1.88564 0.8475,1.88564 0.8475,7.08564 0.8275,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="0.8475,4.48564 1,4.48564 1,7.08564 0.8475,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1,4.78564 1.0075,4.78564 1.0075,7.08564 1,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1,4.54564 1.0075,4.54564 1.0075,4.58564 1,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1.0075,4.78564 1.1575,4.78564 1.1575,7.08564 1.0075,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1.0075,1.88564 1.1575,1.88564 1.1575,4.58564 1.0075,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1.1575,4.78564 1.1725,4.78564 1.1725,7.08564 1.1575,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="3.325,4.78564 3.34,4.78564 3.34,7.08564 3.325,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="3.34,4.78564 3.46,4.78564 3.46,7.08564 3.34,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="3.34,4.48564 3.46,4.48564 3.46,4.58564 3.34,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="3.46,4.78564 3.475,4.78564 3.475,7.08564 3.46,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="5.8275,1.88564 5.8425,1.88564 5.8425,4.48564 5.8275,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="5.9925,1.88564 6.1525,1.88564 6.1525,4.48564 5.9925,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="0.8475,1.88564 1.0075,1.88564 1.0075,4.48564 0.8475,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1.1575,1.88564 1.1725,1.88564 1.1725,4.48564 1.1575,4.48564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1,4.48564 1.0075,4.48564 1.0075,4.54564 1,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1.1575,4.48564 3.34,4.48564 3.34,4.54564 1.1575,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="3.46,4.48564 5.8425,4.48564 5.8425,4.54564 3.46,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="5.9925,4.48564 6,4.48564 6,4.54564 5.9925,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1.1575,4.54564 3.34,4.54564 3.34,4.58564 1.1575,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="3.46,4.54564 5.8425,4.54564 5.8425,4.58564 3.46,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="1,4.58564 6,4.58564 6,4.78564 1,4.78564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="0.6,0.5 6.4,0.5 6.4,0.73094 0.6,0.73094" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="4.2,5.69897 4.2,5.99364 5.2,5.99364 5.2,5.69897" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.005"/>
<polygon points="0.6,0.5 0.6,0.73094 6.4,0.73094 6.4,0.5" fill="none" stroke="#1f242c" stroke-width="0.025"/>
<polygon points="0.8275,1.88564 0.8275,7.08564 1.1725,7.08564 1.1725,4.78564 3.325,4.78564 3.325,7.08564 3.475,7.08564 3.475,4.78564 5.8275,4.78564 5.8275,7.08564 6.1725,7.08564 6.1725,1.88564 5.8275,1.88564 5.8275,4.48564 1.1725,4.48564 1.1725,1.88564" fill="none" stroke="#1f242c" stroke-width="0.025"/>
<polygon points="4.2,5.69897 4.2,5.99364 5.2,5.99364 5.2,5.69897" fill="none" stroke="#1f242c" stroke-width="0.025"/>

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

+9
View File
@@ -134,6 +134,15 @@ describe("dossier-cli", () => {
expect(bytes.length).toBeGreaterThan(10_000);
}, 60_000);
it("[157] Schnitt und Ansicht mit Höhenkoten wie in der App", async () => {
for (const kind of ["section", "elevation"] as const) {
const lvl = sampleProject.drawingLevels.find((l) => l.kind === kind);
if (!lvl) continue;
const out = join(dir, `koten-${kind}.svg`);
expect(await call(kind, lvl.name, "--out", out)).toBe(0);
expect(readFileSync(out, "utf8")).toContain("±0.00");
}
}, 60_000);
it("Schnitt und STEP über das WASM", async () => {
const section = sampleProject.drawingLevels.find((l) => l.kind === "section");
if (section) {
+6 -11
View File
@@ -107,6 +107,7 @@ import {
patchItem,
generatePlan,
generateSectionPlan,
viewportLevelPlan,
planToRenderScene,
projectToModel3d,
parseProjectFile,
@@ -206,7 +207,7 @@ function findLevel(project: Project, kinds: string[], name: string | undefined)
}
/** Ansichts-Felder einer Vorlage, die am Geschoss/Schnitt/Ansicht stehen (wie `state/viewTemplates.ts`). */
const TEMPLATE_LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish"] as const;
const TEMPLATE_LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish", "showTerrain"] as const;
/**
* [33]/[34] `--template <Name|id>`: Ansichtsvorlage auf die Ebene anwenden (Override-Regeln nach
@@ -678,16 +679,10 @@ async function execute(project: Project, file: string, command: string, rest: st
if (!found) fail(`${command} nicht gefunden: ${name ?? "(erste)"}`);
const sp = withSketch(withTemplate(project, found.id, args), found.id, args);
const lvl = sp.drawingLevels.find((l) => l.id === found.id) ?? found;
let plan;
if (kind === "section") {
const o = await computeSection(sp, lvl);
if (!o) fail("keine gültige Schnittlinie");
// Wie die App: verdeckte Kanten nach der Ebene, geschnittene Fenster/Türen.
plan = generateSectionPlan(o, inkArg(args), { visibleCodes: allCodes, hiddenLines: lvl.hiddenLines, openings: true, scaleDenominator: scale });
} else {
plan = generateElevationPlan(sp, lvl, { scaleDenominator: scale, mono: inkArg(args) });
if (!plan) fail("keine gültige Ansichtslinie");
}
// [157] Wie die App (`viewportLevelPlan`): verdeckte Kanten nach der Ebene, geschnittene Fenster/Türen,
// automatische Höhenkoten (`levelMarks`) und die eigenen 2D-Elemente der Schnitt-/Ansichtsebene.
const plan = await viewportLevelPlan(sp, lvl.id, allCodes, undefined, scale, false, inkArg(args));
if (plan.primitives.length === 0) fail(kind === "section" ? "keine gültige Schnittlinie" : "keine gültige Ansichtslinie");
if (args.flags.get("format") === "json") {
out(args, JSON.stringify(planToRenderScene(plan, scale)), `${lvl.name}.scene.json`);
return 0;
+1
View File
@@ -1171,6 +1171,7 @@ export const de = {
"resources.viewTemplates.shadows": "Schatten",
"resources.viewTemplates.hiddenLines": "Verdeckte Kanten",
"resources.viewTemplates.cutHatch": "Schnittflächen 1:100 schraffiert (statt schwarz)",
"resources.viewTemplates.showTerrain": "Gelände, Höhenlinien und Baugrube zeigen (ohne: nur Geschoss ±0.00 und Situation)",
"resources.viewTemplates.floorFinish": "Bodenbelag zeigen (ohne: ab 1:50 bzw. „fein“)",
"resources.viewTemplates.floorFinish.off": "aus",
"resources.viewTemplates.floorFinish.wet": "Nassräume (Platten, gröber als 1:50)",
+1
View File
@@ -1165,6 +1165,7 @@ export const en: Record<TranslationKey, string> = {
"resources.viewTemplates.shadows": "Shadows",
"resources.viewTemplates.hiddenLines": "Hidden lines",
"resources.viewTemplates.cutHatch": "Hatched cut areas at 1:100 (instead of solid black)",
"resources.viewTemplates.showTerrain": "Show terrain, contours and excavation (unset: only the ±0.00 storey and site plan)",
"resources.viewTemplates.floorFinish": "Show floor finish (unset: from 1:50 or “fine”)",
"resources.viewTemplates.floorFinish.off": "off",
"resources.viewTemplates.floorFinish.wet": "Wet rooms (tiles, coarser than 1:50)",
@@ -16,7 +16,8 @@ const count = (pl: { primitives: unknown[] }, cls: string) => pl.primitives.filt
async function probe(proj: typeof p) {
const codes = collectVisibleCodes(proj.layers);
const ug = generatePlan(proj, "ug", codes, undefined, "mittel", false, true, true, 100);
// [157] Gelände im Grundriss nur im Geschoss nächst ±0.00 (EG).
const ug = generatePlan(proj, "eg", codes, undefined, "mittel", false, true, true, 100);
const sec = await computeSection(proj, proj.drawingLevels.find((l) => l.id === "schnitt-a")!);
const sp = generateSectionPlan(sec!, false, { visibleCodes: codes, hiddenLines: true, openings: true, scaleDenominator: 100 });
const ep = generateElevationPlan(proj, proj.drawingLevels.find((l) => l.id === "ansicht-sued")!, { visibleCodes: codes, scaleDenominator: 100 })!;
+6
View File
@@ -32,6 +32,12 @@ describe("Musterhaus komplex", () => {
if (process.env.MK_OUT) writeFileSync(process.env.MK_OUT, text);
});
it("[157] Schnitte ohne verdeckte Kanten (nur sichtbare Projektion); verdeckt über eine eigene Vorlage", () => {
for (const l of p.drawingLevels.filter((l) => l.kind === "section")) expect(l.hiddenLines ?? false).toBe(false);
expect(p.viewTemplates!.find((t) => t.id === "vt-schnitt")?.hiddenLines ?? false).toBe(false);
expect(p.viewTemplates!.some((t) => t.hiddenLines === true)).toBe(true);
});
it("enthält alle Bauteil-Arten", () => {
expect(p.drawingLevels.filter((l) => l.kind === "floor").map((l) => l.id)).toEqual(["ug", "eg", "og", "dg"]);
expect(p.rooms!.length).toBeGreaterThanOrEqual(20);
+7 -4
View File
@@ -102,8 +102,8 @@ const LEVELS: DrawingLevel[] = [
{ id: "og", name: "Obergeschoss", kind: "floor", visible: true, locked: false, floorHeight: H.og, cutHeight: 1.0, baseElevation: Z.og, viewTop: 2.8, viewBottom: 0, viewDepth: -0.3, templateId: "vt-gr100", templateLinked: false },
{ id: "dg", name: "Dachgeschoss", kind: "floor", visible: true, locked: false, floorHeight: H.dg, cutHeight: 1.0, baseElevation: Z.dg, viewTop: 2.6, viewBottom: 0, viewDepth: -0.3, templateId: "vt-gr100", templateLinked: false },
// Schnitte: A längs durch Schleppgaube und Dachfenster (Blick nach Westen), B quer durch Treppen und Erker (Blick nach Norden).
{ id: "schnitt-a", name: "Schnitt A-A", kind: "section", visible: true, locked: false, linePoints: [P(3, -9), P(3, 21)], directionSign: 1, hiddenLines: true, levelMarks: true, templateId: "vt-schnitt" },
{ id: "schnitt-b", name: "Schnitt B-B", kind: "section", visible: true, locked: false, linePoints: [P(-9, 5.6), P(20, 5.6)], directionSign: 1, hiddenLines: true, levelMarks: true, templateId: "vt-schnitt" },
{ id: "schnitt-a", name: "Schnitt A-A", kind: "section", visible: true, locked: false, linePoints: [P(3, -9), P(3, 21)], directionSign: 1, levelMarks: true, templateId: "vt-schnitt" },
{ id: "schnitt-b", name: "Schnitt B-B", kind: "section", visible: true, locked: false, linePoints: [P(-9, 5.6), P(20, 5.6)], directionSign: 1, levelMarks: true, templateId: "vt-schnitt" },
// Ansichten: Linie so, dass die Blickrichtung (linke Normale der Linie) zum Haus zeigt.
{ id: "ansicht-sued", name: "Ansicht Süd", kind: "elevation", visible: true, locked: false, linePoints: [P(-9, -10), P(20, -10)], directionSign: 1, shadows: true, levelMarks: true, templateId: "vt-ansicht" },
{ id: "ansicht-ost", name: "Ansicht Ost", kind: "elevation", visible: true, locked: false, linePoints: [P(24, -6), P(24, 20)], directionSign: 1, shadows: true, levelMarks: true, templateId: "vt-ansicht" },
@@ -586,7 +586,8 @@ function annotations(): Drawing2D[] {
const cloud = [...arcPts(P(12.6, 0), 1.9, -Math.PI, Math.PI, 18).slice(0, 18)].map((q) => P(q.x, r3(q.y * 0.6)));
add("revision-a", "eg", "90", { shape: "polyline", closed: true, pts: cloud, bulge: cloud.map(() => -0.45) }, { color: "#c0392b", weightMm: 0.35 });
add("revision-a-text", "eg", "90", { shape: "text", at: P(14.6, -1.4), text: "△A Pfosten-Riegel statt Fenstertür", height: 0.22, angle: 0 }, { color: "#c0392b" });
add("nordpfeil", "eg", "50", { shape: "block", blockDefId: "blk-nord", at: P(24, -10), rotation: 0, scale: 1.5 });
// [157] Nordpfeil am Ostrand der Parzelle zwischen den Bäumen (vorher auf „Kat.-Nr. 2417“ und der Ansichtslinie Ost).
add("nordpfeil", "eg", "50", { shape: "block", blockDefId: "blk-nord", at: P(26.8, 2.5), rotation: 0, scale: 1.2 });
// Detail Deckenauflager (2D, Massstab 1:10): Schichten mit SIA-Schraffuren, Achse, Bruchlinie, Beschriftung.
const dl = "detail-traufe";
@@ -693,7 +694,9 @@ function views(): Pick<Project, "viewTemplates" | "viewSnapshots" | "viewSnapsho
viewTemplates: [
{ id: "vt-gr100", name: "Grundriss 1:100", detail: "mittel", scaleDenominator: 100, scaleLineWeights: true, cutHeight: 1.0 },
{ id: "vt-gr50", name: "Grundriss 1:50 fein", detail: "fein", scaleDenominator: 50, scaleLineWeights: true },
{ id: "vt-schnitt", name: "Schnitt 1:100", detail: "mittel", scaleDenominator: 100, hiddenLines: true },
// [157] Schnitte zeigen nur die sichtbare Projektion; verdeckte Kanten über die eigene Vorlage.
{ id: "vt-schnitt", name: "Schnitt 1:100", detail: "mittel", scaleDenominator: 100 },
{ id: "vt-schnitt-verdeckt", name: "Schnitt mit verdeckten Kanten", detail: "mittel", scaleDenominator: 100, hiddenLines: true },
{ id: "vt-ansicht", name: "Ansicht 1:100 mit Schatten", detail: "mittel", scaleDenominator: 100, shadows: true },
{ id: "vt-brand", name: "Brandschutzplan", detail: "grob", scaleDenominator: 100, enabledOverrideRuleIds: ["or-brand"], mono: true },
],
+7
View File
@@ -1127,6 +1127,11 @@ export type DrawingLevel = {
* [156] Bodenbelag-Muster im Grundriss: fehlt = automatisch (ab 1:50 bzw. Detail „fein" alle, gröber keine).
*/
floorFinish?: FloorFinishDisplay;
/**
* [157] Gelände, Höhenlinien und Baugruben im Grundriss: fehlt = automatisch (nur im Geschoss nächst ±0.00
* und ab 1:500), `true` immer, `false` nie. Schatten der Sonnenstudie bleiben davon unberührt.
*/
showTerrain?: boolean;
/**
* Grundriss-Unterlage (nur Schnitt/Ansicht): ID eines Geschosses, dessen
* Grundriss AUSGERICHTET unter dem Schnitt/der Ansicht gezeigt wird (Schnitt-
@@ -3525,6 +3530,8 @@ export type ViewTemplate = {
cutHatch?: boolean;
/** [156] Bodenbelag-Muster im Grundriss (s. `DrawingLevel::floor_finish`). */
floorFinish?: FloorFinishDisplay;
/** [157] Gelände im Grundriss zeigen (s. `DrawingLevel::show_terrain`). */
showTerrain?: boolean;
/** Strichstärken mit dem Massstab skalieren. */
scaleLineWeights?: boolean;
/** Schnitthöhe über OKFF ([36]). */
@@ -1,11 +1,11 @@
viewBox -4.2 0 37.045 17.678
bytes 268758
viewBox -4.2 0 37.045 17.378
bytes 263351
circle 4
g 1
line 625
line 561
polygon 1563
polyline 69
polyline 80
rect 1
svg 1
text 4
hash a9745043c9462633
hash f8fdcf6a55c9dcde
@@ -1,12 +1,12 @@
viewBox -4.243 0 23.243 18.205
bytes 23064
viewBox -12.8 0 37.6 33.6
bytes 23004
circle 14
g 1
line 91
polygon 22
polyline 20
polyline 22
rect 1
svg 1
text 36
tspan 12
hash 476f813f443d315d
text 34
tspan 9
hash f0bc37741422757a
@@ -1,12 +1,12 @@
viewBox -4.243 0 23.243 18.205
bytes 307254
viewBox -12.65 0 37.3 33.3
bytes 325522
circle 14
g 1
line 3202
line 3206
polygon 76
polyline 78
polyline 80
rect 1
svg 1
text 36
tspan 12
hash 24e2377802dd7bbc
hash c754734e5a61a0df
@@ -1,13 +1,13 @@
viewBox -41.5 0 95 63.6
bytes 77791
bytes 79943
circle 16
g 1
line 158
line 172
path 18
polygon 91
polygon 90
polyline 124
rect 1
svg 1
text 118
tspan 26
hash 152d5241c7868827
text 116
tspan 24
hash 9dadf0534a699dd9
@@ -1,13 +1,13 @@
viewBox -41.5 0 95 63.6
bytes 128960
bytes 131023
circle 16
g 1
line 403
line 419
path 39
polygon 253
polygon 252
polyline 145
rect 1
svg 1
text 121
tspan 32
hash d4d84942c135622a
hash ff2665a76f5bbb8d
@@ -1,12 +1,12 @@
viewBox -4.243 0 25.297 23.11
bytes 49755
viewBox -12.8 0 37.6 33.6
bytes 51729
circle 14
g 1
line 128
line 142
polygon 52
polyline 111
rect 1
svg 1
text 90
tspan 22
hash f34a5df35938ec79
text 88
tspan 19
hash 17f9cbe73785a7bd
@@ -1,8 +1,8 @@
viewBox -4.243 0 25.297 23.11
bytes 361442
viewBox -12.65 0 37.3 33.3
bytes 370588
circle 14
g 1
line 3227
line 3238
path 21
polygon 213
polyline 180
@@ -10,4 +10,4 @@ rect 1
svg 1
text 91
tspan 24
hash 4d3f45b22f1bbcc7
hash d968a9e0e5adcdd3
@@ -1,13 +1,13 @@
viewBox -10.004 0 31.058 26.958
bytes 51629
viewBox -12.8 0 37.6 33.6
bytes 52830
circle 14
g 1
line 115
line 121
path 4
polygon 44
polyline 81
polyline 83
rect 1
svg 1
text 75
tspan 20
hash c69c51600b89e05d
text 73
tspan 18
hash d87f0eaf1cd610d4
@@ -1,13 +1,13 @@
viewBox -10.004 0 31.058 26.958
bytes 61927
viewBox -12.65 0 37.3 33.3
bytes 62538
circle 14
g 1
line 120
line 117
path 15
polygon 89
polyline 87
polyline 92
rect 1
svg 1
text 75
tspan 20
hash 313f8c57cbd6ef78
hash 0a0d09cb775a502b
@@ -1,11 +1,11 @@
viewBox 4.457 0 21.343 17.678
bytes 41024
viewBox 4.457 0 21.343 17.378
bytes 34158
circle 3
g 1
line 82
line 33
polygon 186
polyline 26
polyline 16
rect 1
svg 1
text 3
hash be087c9e163c62e8
hash ab512b19fa3bae7c
@@ -1,5 +1,5 @@
viewBox -0.672 0 6.345 5.345
bytes 6549
viewBox -1.961 0 8.922 7.473
bytes 6727
g 1
line 29
polygon 16
@@ -8,4 +8,4 @@ rect 1
svg 1
text 7
tspan 3
hash 9dad2d2e8cad8951
hash 743dc1fed14a7c7e
@@ -1,5 +1,5 @@
viewBox -0.672 0 6.345 5.345
bytes 10294
viewBox -1.731 0 8.461 7.322
bytes 10317
g 1
line 30
polygon 48
@@ -8,4 +8,4 @@ rect 1
svg 1
text 7
tspan 3
hash e23122bd0fdcd298
hash 4d8c794c3190f4eb
@@ -1,5 +1,5 @@
viewBox -0.9 0 6.8 5.8
bytes 3322
viewBox -1.961 0 8.922 7.7
bytes 3438
g 1
line 11
polygon 9
@@ -7,4 +7,4 @@ polyline 5
rect 1
svg 1
text 4
hash eb3754dda37500de
hash db4a60e9ca0aace2
@@ -1,5 +1,5 @@
viewBox -0.9 0 6.8 5.8
bytes 5279
viewBox -1.731 0 8.461 7.55
bytes 5357
g 1
line 11
polygon 26
@@ -7,4 +7,4 @@ polyline 5
rect 1
svg 1
text 4
hash ad783367c9666db3
hash aa64b436ceb679c4
@@ -1,9 +1,9 @@
viewBox 0.1 0 6.8 7.586
bytes 6451
bytes 6668
g 1
line 21
polygon 34
polyline 4
rect 1
svg 1
hash bfdb9a52ee2f2f02
hash 405920d4c0d4ea97
+5
View File
@@ -40,6 +40,11 @@ describe("viewTemplates", () => {
const q = applyOps(p, applyToLevelOps(p, "tb", "eg", false));
expect(q.drawingLevels.find((l) => l.id === "eg")?.floorFinish).toBe("wet");
});
it("[157] setzt „Gelände zeigen“ am Geschoss", () => {
const p = applyOps(base(), addTemplateOps({ id: "tg", name: "Umgebung", showTerrain: true }));
const q = applyOps(p, applyToLevelOps(p, "tg", "og", false));
expect(q.drawingLevels.find((l) => l.id === "og")?.showTerrain).toBe(true);
});
it("erfasst Geschoss- und Anzeigewerte", () => {
const p = base();
const t = captureTemplate("t", "V", p.drawingLevels.find((l) => l.id === "eg"), ui);
+1 -1
View File
@@ -29,7 +29,7 @@ export interface ViewTemplateUi {
}
/** Geschoss-Felder, die eine Vorlage setzt (fehlt das Vorlagen-Feld, bleibt die Ansicht unberührt). */
const LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish"] as const;
const LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch", "floorFinish", "showTerrain"] as const;
/** Teilobjekt für das Geschoss aus den gesetzten Feldern der Vorlage. */
export function levelPatch(t: ViewTemplate): Partial<DrawingLevel> {
+2 -1
View File
@@ -116,7 +116,7 @@ function TemplateDetail({
<NumberField value={tpl[key] ?? dflt} step={0.1} onChange={(v) => patch({ [key]: v })} />
</Optional>
);
const bool = (key: "mono" | "shadows" | "hiddenLines" | "scaleLineWeights" | "sketch" | "cutHatch", label: string) => (
const bool = (key: "mono" | "shadows" | "hiddenLines" | "scaleLineWeights" | "sketch" | "cutHatch" | "showTerrain", label: string) => (
<Optional label={label} on={tpl[key] !== undefined} onToggle={(on) => patch({ [key]: on ? false : null })}>
<input type="checkbox" checked={tpl[key] === true} onChange={(e) => patch({ [key]: e.target.checked })} />
</Optional>
@@ -157,6 +157,7 @@ function TemplateDetail({
{bool("scaleLineWeights", t("resources.viewTemplates.scaleLineWeights"))}
{bool("sketch", t("resources.viewTemplates.sketch"))}
{bool("cutHatch", t("resources.viewTemplates.cutHatch"))}
{bool("showTerrain", t("resources.viewTemplates.showTerrain"))}
<Optional label={t("resources.viewTemplates.floorFinish")} on={tpl.floorFinish !== undefined} onToggle={(on) => patch({ floorFinish: on ? "off" : null })}>
<select className="res-input" aria-label={t("resources.viewTemplates.floorFinish")} value={tpl.floorFinish ?? "off"} onChange={(e) => patch({ floorFinish: e.target.value })}>
{(["off", "wet", "all"] as const).map((v) => (