[131] Geschosse: Bezugsgeschoss ±0.00, Untergeschosse negativ (Format 5)
DrawingLevel.zeroLevel markiert das Geschoss auf ±0.00; der Kern stapelt nach Geschosshöhen und verschiebt den Stapel darauf. Koten im Schnitt/in der Ansicht relativ zu ±0.00, an ±0.00 mit Meereshöhe. UI: Bezug ±0.00 und OK FB im Geschoss-Editor, Navigator mit Vorzeichen. Musterhaus komplex: EG = ±0.00, UG -2.70, absolute Höhen verschoben; Golden nachgeführt.
This commit is contained in:
31 files changed
+342
-94
No files matched your search
@@ -14,7 +14,7 @@ import { excavationQuantities } from "../analysis/excavation";
|
||||
import { checkSiteRules } from "../analysis/siteRules";
|
||||
import { sheetTables } from "../export/sheetTable";
|
||||
import { serializeProject, parseProjectFile } from "../io/projectFormat";
|
||||
import { collectVisibleCodes } from "./types";
|
||||
import { collectVisibleCodes, recomputeFloorElevations } from "./types";
|
||||
|
||||
const p = buildComplexSampleProject();
|
||||
const codes = collectVisibleCodes(p.layers);
|
||||
@@ -44,6 +44,14 @@ describe("Musterhaus komplex", () => {
|
||||
for (const k of ["blockrahmen", "umfassungszarge", "futter", "schiebe", "eckzarge", "wandoeffnung"]) expect(frameKinds).toContain(k);
|
||||
});
|
||||
|
||||
it("[131] EG = ±0.00, UG darunter negativ; Höhen = Stapel des Kerns", () => {
|
||||
const z = Object.fromEntries(p.drawingLevels.filter((l) => l.kind === "floor").map((l) => [l.id, l.baseElevation]));
|
||||
expect(z).toEqual({ ug: -2.7, eg: 0, og: 2.9, dg: 5.7 });
|
||||
expect(p.drawingLevels.find((l) => l.id === "eg")?.zeroLevel).toBe(true);
|
||||
const r = recomputeFloorElevations(p.drawingLevels);
|
||||
for (const [i, l] of r.entries()) if (l.kind === "floor") expect(l.baseElevation, l.id).toBeCloseTo(p.drawingLevels[i].baseElevation!, 9);
|
||||
});
|
||||
|
||||
it("Grundrisse aller Geschosse und das Detail rechnen", () => {
|
||||
for (const l of p.drawingLevels.filter((x) => x.kind === "floor" || x.kind === "drawing")) {
|
||||
const plan = generatePlan(p, l.id, codes, undefined, "mittel", false, false, true, 100);
|
||||
|
||||
Reference in new issue
Block a user