diff --git a/e2e/pickCycle.spec.ts b/e2e/pickCycle.spec.ts index a56a8f73..704fa143 100644 --- a/e2e/pickCycle.spec.ts +++ b/e2e/pickCycle.spec.ts @@ -58,7 +58,8 @@ test("Situation 1:500: erneuter Klick schaltet durch Bemassung, Schatten und Gel await page.mouse.click(p.x, p.y); await expect(hint).toContainText(`${i}/${n} Treffer`); seen.push((await objInfo(page).locator(".objinfo-kind").first().textContent().catch(() => "")) ?? ""); - if (await objInfo(page).getByTestId("terrain-smooth").isVisible()) seen.push("terrain"); + // [207] Die Vorlage „Situation WBW“ zeigt das Gelände als Höhenlinien (ohne Netz-Füllung): beides zählt als Gelände. + if ((await objInfo(page).getByTestId("terrain-smooth").isVisible()) || seen[seen.length - 1].includes("Gelände")) seen.push("terrain"); } expect(seen).toContain("Schatten (Sonnenstand)"); expect(seen).toContain("terrain"); diff --git a/src/state/selectAll.ts b/src/state/selectAll.ts index 8442cc01..e44ba1ac 100644 --- a/src/state/selectAll.ts +++ b/src/state/selectAll.ts @@ -24,6 +24,8 @@ export function selectAllIds(project: Project, levelId: string): Partial r.floorId === levelId).map((r) => r.id); const solids = (project.extrudedSolids ?? []).filter((s) => s.levelId === levelId).map((s) => s.id); const columnIds = (project.columns ?? []).filter((c) => c.floorId === levelId).map((c) => c.id); + // [213] Kameras des Geschosses (Symbol im Grundriss), gesperrte bleiben. + const cameras = (project.cameras ?? []).filter((c) => c.floorId === levelId && !c.locked).map((c) => c.id); // Schnittführungs-Symbole sind projektweit (kein floorId; plan/context.rs, plan_section_lines). const sectionLines = project.drawingLevels .filter((l) => (l.kind === "section" || l.kind === "elevation") && l.linePoints) @@ -50,6 +52,7 @@ export function selectAllIds(project: Project, levelId: string): Partial q.kind === "polygon" && q.fill && q.fill !== "none").length; + // Ankommende Treppen anderer Geschosse ([202]: ohne Deckenloch unbeschnitten gezeichnet) gehören nicht zum Geschoss. + const ownStairs = new Set((s.project.stairs ?? []).filter((t) => t.floorId === s.activeLevelId).map((t) => t.id)); + return generatePlan(s.project, s.activeLevelId, codes, undefined, s.detail, false, false, true, 100).primitives.filter( + (q) => + q.kind === "polygon" && + q.fill && + q.fill !== "none" && + (!q.stairId || ownStairs.has(q.stairId)) && + // nur Füllungen von Elementen (Pfeilspitzen der Schnittmarken u. ä. tragen keine Element-Id) + Object.entries(q).some(([k, v]) => k.endsWith("Id") && !!v), + ).length; }, terrainZ: () => { const t = (getState().project.context ?? []).find((c) => c.type === "terrainMesh");