Merge branch 'worktree-agent-aa6c456688a88a414' into claude/practical-noether-1hb2s1
This commit is contained in:
13 files changed
+542
-40
No files matched your search
@@ -26,8 +26,10 @@ export interface AreaRow {
|
||||
/** Aussengeschossfläche — nicht Teil der GF. */
|
||||
agf: number;
|
||||
height: number;
|
||||
/** GF × Geschosshöhe. */
|
||||
/** GF × Geschosshöhe + Dachraum (`roofGv`); in der Summenzeile das GV der Tabelle. */
|
||||
gv: number;
|
||||
/** [266] Dachraum-Korrektur des Geschosses (m³, in `gv` enthalten; Kern `building_volume.rs`). */
|
||||
roofGv: number;
|
||||
rooms: number;
|
||||
}
|
||||
|
||||
@@ -39,6 +41,8 @@ export interface AreaTable {
|
||||
/** Gebäudevolumen (m³) gemäss `gvSource`. */
|
||||
gv: number;
|
||||
gvSource: GvSource;
|
||||
/** [266] Anteil des Dachraums über ±0.00 (m³, Baumasse). */
|
||||
roofGvAboveGround: number;
|
||||
/** Hinweis-Schlüssel (Annahmen der Rechnung). */
|
||||
notes: string[];
|
||||
}
|
||||
|
||||
@@ -34,17 +34,19 @@ describe("computeKennzahlen", () => {
|
||||
const k = computeKennzahlen({ ...sampleProject, parcelArea: 1000 });
|
||||
expect(k.az).toBeCloseTo(k.agf / 1000, 9);
|
||||
});
|
||||
it("Gebäudevolumen aus freien Körpern, Abzugskörper zählen negativ nicht mit", () => {
|
||||
const p: Project = {
|
||||
...sampleProject,
|
||||
extrudedSolids: [
|
||||
{ id: "a", type: "extrudedSolid", categoryCode: "20", levelId: sampleProject.drawingLevels[0].id, points: sq(0, 0, 10), height: 3 } as never,
|
||||
{ id: "b", type: "extrudedSolid", categoryCode: "20", levelId: sampleProject.drawingLevels[0].id, points: sq(0, 0, 1), height: 3, operation: "subtract" } as never,
|
||||
],
|
||||
};
|
||||
const k = computeKennzahlen(p);
|
||||
const solids = (levelId: string): Project["extrudedSolids"] => [
|
||||
{ id: "a", type: "extrudedSolid", categoryCode: "20", levelId, points: sq(0, 0, 10), height: 3 } as never,
|
||||
{ id: "b", type: "extrudedSolid", categoryCode: "20", levelId, points: sq(0, 0, 1), height: 3, operation: "subtract" } as never,
|
||||
];
|
||||
it("Massenmodell (ohne Geschossflächen): Gebäudevolumen aus freien Körpern, Abzugskörper zählen negativ", () => {
|
||||
const lv = emptyProject.drawingLevels.find((l) => l.kind === "floor")!.id;
|
||||
const k = computeKennzahlen({ ...emptyProject, extrudedSolids: solids(lv) });
|
||||
expect(k.gv).toBeCloseTo(300 - 3, 6);
|
||||
});
|
||||
it("[266] mit Geschossflächen zählen freie Körper nicht zum GV", () => {
|
||||
const k = computeKennzahlen({ ...sampleProject, extrudedSolids: solids(sampleProject.drawingLevels[0].id) });
|
||||
expect(k.gv).toBeCloseTo(computeAreaTable(sampleProject).gv, 6);
|
||||
});
|
||||
it("[206] ohne freie Körper: GV wie die Flächentabelle (GF × Geschosshöhe), nicht 0", () => {
|
||||
const k = computeKennzahlen(sampleProject);
|
||||
expect(k.gv).toBeGreaterThan(0);
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
//
|
||||
// • Flächen je Geschoss nach SIA 416 (GF = NGF + KF, NGF, HNF), Summe über das Gebäude — dieselben Zahlen
|
||||
// wie die Flächentabelle ([225]: eine Quelle, `flaechen.rs`).
|
||||
// • Gebäudevolumen (GV) aus den freien Körpern (Massenmodell); Abzugskörper zählen nicht mit,
|
||||
// ihr Volumen wird abgezogen. Ohne freie Körper GF × Geschosshöhe wie die Flächentabelle ([206]).
|
||||
// • Gebäudevolumen (GV) wie die Flächentabelle: Geschosse (GF × Geschosshöhe) plus Dachraum ([266]); nur im
|
||||
// reinen Massenmodell (keine Geschossflächen) die freien Körper, Abzugskörper abgezogen ([206]).
|
||||
// • AZ/ÜZ wie die IVHB-Ziffern der Tabelle mit ihren Vorgaben (aGF = NGF oberirdisch, aGbF), nur mit
|
||||
// `project.parcelArea` oder der Parzellengrenze (`siteRules`).
|
||||
// • Raumprogramm (`project.roomProgram`, Soll) gegen die gezeichneten Räume.
|
||||
@@ -42,7 +42,7 @@ export interface Kennzahlen {
|
||||
hnf: number;
|
||||
/** Konstruktionsfläche (Σ). */
|
||||
kf: number;
|
||||
/** Gebäudevolumen aus den freien Körpern (m³), Abzugskörper abgezogen; ohne Körper GF × Geschosshöhe. */
|
||||
/** Gebäudevolumen (m³) wie die Flächentabelle: Geschosse + Dachraum, reines Massenmodell: freie Körper. */
|
||||
gv: number;
|
||||
/** Anrechenbare Gebäudefläche (IVHB aGbF, m²) = Zähler der ÜZ. */
|
||||
footprint: number;
|
||||
|
||||
+6
-5
@@ -2603,8 +2603,9 @@ export const de = {
|
||||
"areas.src.none": "nicht gesetzt",
|
||||
"areas.note.agfSeparate": "Die Aussengeschossfläche AGF gehört nicht zur GF und wird separat ausgewiesen.",
|
||||
"areas.note.kfFromWalls": "KF aus den Wandgrundrissen (abzüglich Räume) und KGF-Räumen hergeleitet; Stützen und Schächte nur als KGF-Raum.",
|
||||
"areas.note.gvSolids": "GV = Volumen der freien Körper (Massenmodell).",
|
||||
"areas.note.gvLevels": "GV ≈ GF × Geschosshöhe je Geschoss.",
|
||||
"areas.note.gvSolids": "GV = Volumen der freien Körper (Massenmodell ohne Geschossflächen).",
|
||||
"areas.note.gvLevels": "GV nach SIA 416: GF × Geschosshöhe je Geschoss plus Dachraum bis Oberkante Dach (Gauben eingeschlossen, ohne Dachvorsprünge); Geschossteile über der Dachfläche abgezogen.",
|
||||
"areas.note.gvRoofFailed": "Dachraum nicht berechenbar (Dachgeometrie fehlerhaft): GV ohne Dachraum.",
|
||||
"areas.note.terrainZero": "Massgebendes Terrain = ±0.00 (kein Geländemodell).",
|
||||
"areas.note.agsfMissing": "Ohne anrechenbare Grundstücksfläche sind keine Ziffern berechenbar.",
|
||||
"areas.note.greenInput": "Die Grünfläche ist nicht aus dem Modell ableitbar und muss eingegeben werden.",
|
||||
@@ -3088,7 +3089,7 @@ export const de = {
|
||||
"kennzahlen.programIssue": "{name}: {status}",
|
||||
"kennzahlen.gf": "Geschossfläche (SIA 416) aus den Räumen",
|
||||
"kennzahlen.agf": "Anrechenbare Geschossfläche ≈ NGF",
|
||||
"kennzahlen.gv": "Gebäudevolumen aus den freien Körpern, ohne solche GF × Geschosshöhe",
|
||||
"kennzahlen.gv": "Gebäudevolumen nach SIA 416: Geschosse (GF × Geschosshöhe) plus Dachraum; reines Massenmodell: Volumen der freien Körper",
|
||||
"kennzahlen.az": "Ausnützungsziffer aGF / Parzelle",
|
||||
"kennzahlen.uez": "Überbauungsziffer bebaute Fläche / Parzelle",
|
||||
"kennzahlen.parcelArea": "Parzellenfläche",
|
||||
@@ -4467,8 +4468,8 @@ export const de = {
|
||||
"costs.q.roof": "Dachfläche",
|
||||
"costs.note.example": "* Beispielwert: runde Annahme für ein Gebäude mittleren Standards (Preisstand 2025), keine offizielle Quelle — bitte durch eigene Kennwerte ersetzen.",
|
||||
"costs.note.noQuantity": "Keine Mengen: das Modell hat weder GV noch GF (Geschosse mit Wänden/Räumen oder freie Körper zeichnen).",
|
||||
"costs.note.gvSolids": "GV aus den freien Körpern (Massenmodell), GF/HNF aus der Flächentabelle SIA 416.",
|
||||
"costs.note.gvLevels": "Mengen aus der Flächentabelle SIA 416 (GV ≈ GF × Geschosshöhe).",
|
||||
"costs.note.gvSolids": "GV aus den freien Körpern (Massenmodell ohne Geschossflächen), GF/HNF aus der Flächentabelle SIA 416.",
|
||||
"costs.note.gvLevels": "Mengen aus der Flächentabelle SIA 416 (GV = GF × Geschosshöhe plus Dachraum bis Oberkante Dach).",
|
||||
"costs.note.facade": "Fassadenfläche = Aussenumfang der oberirdischen Geschosse × Geschosshöhe; Innenhöfe, Brüstungen und Attiken fehlen.",
|
||||
"costs.note.roofFootprint": "Kein Dach im Modell: Dachfläche = Fläche im Aussenumriss (Flachdach-Annahme).",
|
||||
"costs.note.accuracy": "Genauigkeit ±{pct} (SIA 102: Vorstudie ±25 %, Vorprojekt ±15 %).",
|
||||
|
||||
+6
-5
@@ -2591,8 +2591,9 @@ export const en: Record<TranslationKey, string> = {
|
||||
"areas.src.none": "not set",
|
||||
"areas.note.agfSeparate": "The external floor area AGF is not part of GF and is shown separately.",
|
||||
"areas.note.kfFromWalls": "KF derived from wall footprints (minus rooms) and KGF rooms; columns and shafts only as a KGF room.",
|
||||
"areas.note.gvSolids": "GV = volume of the free solids (massing model).",
|
||||
"areas.note.gvLevels": "GV ≈ GF × floor height per level.",
|
||||
"areas.note.gvSolids": "GV = volume of the free solids (massing model without floor areas).",
|
||||
"areas.note.gvLevels": "GV per SIA 416: GF × floor height per level plus the roof space up to the top of the roof (dormers included, eaves overhangs excluded); parts of a level above the roof surface deducted.",
|
||||
"areas.note.gvRoofFailed": "Roof space could not be computed (faulty roof geometry): GV without roof space.",
|
||||
"areas.note.terrainZero": "Reference terrain = ±0.00 (no terrain model).",
|
||||
"areas.note.agsfMissing": "Without a creditable plot area no ratios can be computed.",
|
||||
"areas.note.greenInput": "The green area cannot be derived from the model and must be entered.",
|
||||
@@ -3036,7 +3037,7 @@ export const en: Record<TranslationKey, string> = {
|
||||
"kennzahlen.programIssue": "{name}: {status}",
|
||||
"kennzahlen.gf": "Gross floor area (SIA 416) from rooms",
|
||||
"kennzahlen.agf": "Chargeable floor area ≈ net floor area",
|
||||
"kennzahlen.gv": "Building volume from the free solids, without them GFA × floor height",
|
||||
"kennzahlen.gv": "Building volume per SIA 416: levels (GFA × floor height) plus roof space; pure massing model: volume of the free solids",
|
||||
"kennzahlen.az": "Floor area ratio (usable area / site)",
|
||||
"kennzahlen.uez": "Site coverage (built area / site)",
|
||||
"kennzahlen.parcelArea": "Site area",
|
||||
@@ -4453,8 +4454,8 @@ export const en: Record<TranslationKey, string> = {
|
||||
"costs.q.roof": "Roof area",
|
||||
"costs.note.example": "* Example value: rounded assumption for a building of average standard (price base 2025), no official source — please replace with your own rates.",
|
||||
"costs.note.noQuantity": "No quantities: the model has neither GV nor GF (draw floors with walls/rooms or free solids).",
|
||||
"costs.note.gvSolids": "GV from the free solids (massing model), GF/HNF from the SIA 416 area table.",
|
||||
"costs.note.gvLevels": "Quantities from the SIA 416 area table (GV ≈ GF × floor height).",
|
||||
"costs.note.gvSolids": "GV from the free solids (massing model without floor areas), GF/HNF from the SIA 416 area table.",
|
||||
"costs.note.gvLevels": "Quantities from the SIA 416 area table (GV = GF × floor height plus roof space up to the top of the roof).",
|
||||
"costs.note.facade": "Facade area = outer perimeter of the floors above ground × floor height; courtyards, parapets and attic floors are not included.",
|
||||
"costs.note.roofFootprint": "No roof in the model: roof area = area inside the outline (flat roof assumption).",
|
||||
"costs.note.accuracy": "Accuracy ±{pct} (SIA 102: preliminary study ±25 %, preliminary design ±15 %).",
|
||||
|
||||
Reference in new issue
Block a user