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

This commit is contained in:
Claude committed 2026-11-11 03:00:59 +00:00
commit a4c541bc50
25 files changed
+519 -68

No files matched your search

+3 -3
View File
@@ -26,9 +26,9 @@
<polygon points="0.6,1.88564 6.4,1.88564 6.4,0.5 0.6,0.5" fill="#b8735c" stroke="none" stroke-width="0"/>
<polygon points="4.2,7.08564 5.2,7.08564 5.2,6.73897 4.2,6.73897" fill="#9aa0a6" stroke="none" stroke-width="0"/>
<polygon points="4.2,7.08564 5.2,7.08564 5.2,6.91231 4.2,6.91231" fill="#9aa0a6" stroke="none" stroke-width="0"/>
<polygon points="1,4.54564 6,4.54564 6,4.48564 1,4.48564" fill="#c9c2b3" stroke="none" stroke-width="0"/>
<polygon points="1,4.58564 6,4.58564 6,4.54564 1,4.54564" fill="#ffffff" stroke="none" stroke-width="0"/>
<polygon points="1,4.78564 6,4.78564 6,4.58564 1,4.58564" fill="#9aa0a6" stroke="none" stroke-width="0"/>
<polygon points="1.0075,4.54564 5.9925,4.54564 5.9925,4.48564 1.0075,4.48564" fill="#c9c2b3" stroke="none" stroke-width="0"/>
<polygon points="1.0075,4.58564 5.9925,4.58564 5.9925,4.54564 1.0075,4.54564" fill="#ffffff" stroke="none" stroke-width="0"/>
<polygon points="1.0075,4.78564 5.9925,4.78564 5.9925,4.58564 1.0075,4.58564" fill="#9aa0a6" stroke="none" stroke-width="0"/>
<polygon points="5.8275,7.08564 6.1725,7.08564 6.1725,4.48564 5.8275,4.48564" fill="#ffffff" stroke="none" stroke-width="0"/>
<polygon points="1.1725,7.08564 1.1725,4.48564 0.8275,4.48564 0.8275,7.08564" fill="#ffffff" stroke="none" stroke-width="0"/>
<polygon points="3.325,7.08564 3.475,7.08564 3.475,4.48564 3.325,4.48564" fill="#8c5544" stroke="none" stroke-width="0"/>

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

+3 -11
View File
@@ -5,14 +5,10 @@
<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.012"/>
<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.012"/>
<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.012"/>
<polygon points="6,4.48564 6.1525,4.48564 6.1525,7.08564 6,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="5.9925,4.78564 6,4.78564 6,7.08564 5.9925,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="5.9925,4.54564 6,4.54564 6,4.58564 5.9925,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="5.9925,1.88564 6.1525,1.88564 6.1525,7.08564 5.9925,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<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.012"/>
<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.012"/>
<polygon points="0.8475,4.48564 1,4.48564 1,7.08564 0.8475,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="1,4.78564 1.0075,4.78564 1.0075,7.08564 1,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="1,4.54564 1.0075,4.54564 1.0075,4.58564 1,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="0.8475,1.88564 1.0075,1.88564 1.0075,7.08564 0.8475,7.08564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<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.012"/>
<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.012"/>
<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.012"/>
@@ -20,14 +16,10 @@
<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.012"/>
<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.012"/>
<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.012"/>
<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.012"/>
<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.012"/>
<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.012"/>
<polygon points="1,4.48564 1.0075,4.48564 1.0075,4.54564 1,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="1.1575,4.48564 5.8425,4.48564 5.8425,4.54564 1.1575,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="5.9925,4.48564 6,4.48564 6,4.54564 5.9925,4.54564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="1.1575,4.54564 5.8425,4.54564 5.8425,4.58564 1.1575,4.58564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="1,4.58564 6,4.58564 6,4.78564 1,4.78564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<polygon points="1.0075,4.58564 5.9925,4.58564 5.9925,4.78564 1.0075,4.78564" fill="#0f0f0f" stroke="#0f0f0f" stroke-width="0.012"/>
<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.012"/>
<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.012"/>
<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"/>

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

+2
View File
@@ -592,6 +592,8 @@ export const de = {
"objinfo.ceiling.buildup": "Aufbau",
"objinfo.ceiling.thickness": "Dicke",
"objinfo.ceiling.preset": "Deckenaufbau",
"objinfo.ceiling.bearingCore": "Auflager bis Kern",
"objinfo.ceiling.bearingCoreHint": "An mehrschichtigen Aussenwänden endet die Decke an der Aussenkante der tragenden Schicht; Dämmung und Putz laufen davor durch. Aus: Decke bis an den Umriss.",
"objinfo.ceiling.refFloor": "Referenzgeschoss",
"objinfo.ceiling.top": "Oberkante (OK)",
"objinfo.ceiling.bottom": "Unterkante (UK)",
+2
View File
@@ -591,6 +591,8 @@ export const en: Record<TranslationKey, string> = {
"objinfo.ceiling.buildup": "Build-up",
"objinfo.ceiling.thickness": "Thickness",
"objinfo.ceiling.preset": "Ceiling style",
"objinfo.ceiling.bearingCore": "Bearing to core",
"objinfo.ceiling.bearingCoreHint": "At multi-layer exterior walls the slab ends at the outer face of the load-bearing layer; insulation and render run past it. Off: slab up to its outline.",
"objinfo.ceiling.refFloor": "Reference floor",
"objinfo.ceiling.top": "Top (OK)",
"objinfo.ceiling.bottom": "Bottom (UK)",
+6
View File
@@ -81,6 +81,12 @@ export type Ceiling = {
isExternal?: boolean;
/** Tragend (IFC `LoadBearing`); fehlt = nicht angegeben. */
loadBearing?: boolean;
/**
* [178] Deckenrand an Aussenwänden: `true` = Platte bis an den Umriss (über die Aussenschichten der
* Wand); fehlt/`false` = Auflager bis Aussenkante der tragenden Schicht, Aussendämmung/Putz laufen
* an der Deckenstirn durch.
*/
edgeAtOutline?: boolean;
/**
* Geschlossener Umriss im Grundriss (Meter). Der Schlusspunkt wird NICHT
* dupliziert (die letzte Kante läuft von outline[n-1] zu outline[0]).
+2
View File
@@ -419,6 +419,8 @@ export interface PanelHostValue {
onSetWallRoofAttach: (attach: "auto" | "on" | "off") => void;
/** Aussenbauteil/tragend der gewählten Wand bzw. Decke ([97]/[98]); `false` = Feld weg. */
onSetBuildingFlags: (flags: { isExternal?: boolean; loadBearing?: boolean }) => void;
/** [178] Deckenrand der gewählten Decke: `true` = bis an den Umriss, `false` = Auflager bis Kern (Standard). */
onSetCeilingEdgeAtOutline?: (edgeAtOutline: boolean) => void;
/** Ansichtsschraffur ([100]) an der gewählten Wand bzw. am gewählten Dach drehen/versetzen. */
onSetSurfacePatternPlacement?: (patch: { surfacePatternAngle?: number; surfacePatternOffset?: { x: number; y: number } }) => void;
/** Weist der Wand einen Wandtyp-Preset (mehrschichtiger Aufbau) zu. */
+11
View File
@@ -90,6 +90,17 @@ export function CeilingSection({
</div>
<UValueRow project={storeProject} kind="ceiling" typeId={ceiling.typeId} />
{/* [178] Deckenrand an Aussenwänden: Auflager bis Aussenkante Kern (Standard) oder wie Umriss. */}
<div className="objinfo-field" title={t("objinfo.ceiling.bearingCoreHint")}>
<span className="objinfo-flabel">{t("objinfo.ceiling.bearingCore")}</span>
<input
type="checkbox"
data-testid="objinfo-ceiling-bearingCore"
checked={!ceiling.edgeAtOutline}
onChange={(e) => host.onSetCeilingEdgeAtOutline?.(!e.target.checked)}
/>
</div>
{/* Fläche + Volumen (read-only). */}
<div className="objinfo-field">
<span className="objinfo-flabel">{t("objinfo.ceiling.area")}</span>
@@ -1,12 +1,12 @@
viewBox -4.2 0 37.045 17.378
bytes 194655
bytes 196335
circle 4
g 1
line 440
line 437
path 2
polygon 1027
polygon 1045
polyline 154
rect 1
svg 1
text 4
hash 8dcebfa489878dcc
hash 673ad0ec9c6ff4d1
+15 -15
View File
@@ -41,24 +41,24 @@ roofLayers[].polygon[] [3] x281
slabs [70]
slabs[].color [3] x70
slabs[].outline [12]
slabs[].outline [14] x5
slabs[].outline [21] x4
slabs[].outline [22] x5
slabs[].outline [24]
slabs[].outline [33] x5
slabs[].outline [41] x5
slabs[].outline [4] x49
slabs[].outline [51] x5
slabs[].outline[] [2] x806
walls [1489]
slabs[].outline [55] x5
slabs[].outline[] [2] x906
walls [1492]
walls[].arcCenter [2] x832
walls[].color [3] x1489
walls[].end [2] x1489
walls[].endCut [4] x1162
walls[].holes [1] x84
walls[].color [3] x1492
walls[].end [2] x1492
walls[].endCut [4] x1105
walls[].holes [1] x90
walls[].holes [2] x25
walls[].holes [3] x14
walls[].layers [0] x1489
walls[].start [2] x1489
walls[].startCut [4] x1164
walls[].topDrop [2] x103
walls[].topPlane [3] x259
hash e65de53f576b2bf9
walls[].layers [0] x1492
walls[].start [2] x1492
walls[].startCut [4] x1107
walls[].topDrop [2] x115
walls[].topPlane [3] x271
hash d213e50f1373f98b
@@ -1,11 +1,11 @@
viewBox 4.457 0 21.343 17.378
bytes 33634
bytes 28680
circle 4
g 1
line 44
polygon 176
polyline 17
line 39
polygon 141
polyline 16
rect 1
svg 1
text 3
hash c94d4102e772735b
hash d2dde45c8a663cfa
@@ -1,9 +1,9 @@
viewBox 0.1 0 6.8 7.586
bytes 7943
bytes 7991
g 1
line 7
polygon 58
polyline 4
rect 1
svg 1
hash 2c007ba03a679a15
hash 4ab158ddf2aaa6ce
+1 -1
View File
@@ -28,4 +28,4 @@ walls[].start [2] x59
walls[].startCut [4] x47
walls[].topDrop [2] x6
walls[].topPlane [3] x6
hash a131fee4170591f5
hash 5cbc613628e29bb6
@@ -1,9 +1,9 @@
viewBox 0.1 0 6.8 7.586
bytes 6317
bytes 5429
g 1
line 21
polygon 31
polygon 23
polyline 4
rect 1
svg 1
hash 3ad55e8289524c3b
hash 8e8fd80e9c2fedf3
+12 -3
View File
@@ -30,16 +30,19 @@ const hole: { x: number; y: number }[] = [
{ x: 2, y: 2.5 },
]; // 1x1, vollständig innerhalb des 5x4-Umrisses
// [178] Platte hier „wie Deckenumriss" (sonst endet sie an der Aussenkante Backstein, 7.5 mm innerhalb).
const base: Project = { ...sampleProject, ceilings: sampleProject.ceilings!.map((c) => ({ ...c, edgeAtOutline: true })) };
function projectWithHole(): Project {
return {
...sampleProject,
ceilings: sampleProject.ceilings!.map((c) => (c.id === "C1" ? { ...c, openings: [hole] } : c)),
...base,
ceilings: base.ceilings!.map((c) => (c.id === "C1" ? { ...c, openings: [hole] } : c)),
};
}
describe("emitSlabs (via pickGeometry) — Decken-Aussparungen", () => {
it("ohne openings: Slab-Outline unverändert (Regression)", () => {
const slabs = pickGeometry(sampleProject).slabs.filter((s) => s.ceilingId === "C1");
const slabs = pickGeometry(base).slabs.filter((s) => s.ceilingId === "C1");
expect(slabs.length).toBe(3); // 3 Schichten
for (const s of slabs) {
expect(s.outline.length).toBe(4);
@@ -47,6 +50,12 @@ describe("emitSlabs (via pickGeometry) — Decken-Aussparungen", () => {
}
});
it("[178] Auflager bis Kern: Platte endet an der Aussenkante Backstein (Umriss je Seite 7.5 mm kleiner)", () => {
const slabs = pickGeometry(sampleProject).slabs.filter((s) => s.ceilingId === "C1");
expect(slabs.length).toBe(3);
for (const s of slabs) expect(ringArea(s.outline)).toBeCloseTo((5 - 0.015) * (4 - 0.015), 4);
});
it("mit einem 1x1-Loch: jede Schicht bekommt denselben erweiterten Ring (mehr Vertices, Fläche = Aussen - Loch)", () => {
const slabs = pickGeometry(projectWithHole()).slabs.filter((s) => s.ceilingId === "C1");
expect(slabs.length).toBe(3); // Anzahl Schichten unverändert
@@ -42,6 +42,9 @@ export function buildElementAttributesHost(c: FlatHostOpts) {
if (selection?.kind === "wall") updateWall(selection.id, patch);
else if (selection?.kind === "ceiling") updateCeiling(selection.id, patch);
},
onSetCeilingEdgeAtOutline: (edgeAtOutline) => {
if (selection?.kind === "ceiling") updateCeiling(selection.id, { edgeAtOutline: edgeAtOutline || undefined });
},
onSetWallType: (wallTypeId) => {
if (selection?.kind === "wall")
updateWall(selection.id, { wallTypeId });
+2
View File
@@ -172,6 +172,8 @@ export interface CeilingInfo {
/** Aussenbauteil / tragend ([97]/[98]). */
isExternal: boolean;
loadBearing: boolean;
/** [178] Platte bis an den Umriss statt Auflager bis Aussenkante Kern der Aussenwand. */
edgeAtOutline: boolean;
/** Aktuelle Gesamtdicke (Meter). */
thickness: number;
/** Ob der aktuelle Aufbau-Typ einschichtig ist (1 Schicht). */