[227] Kontextgebäude aufs Gelände setzen, Baugrube im Rendering ausblenden

Kern context_ground.rs: Gebäude eines Netzes auf den tiefsten Geländepunkt unter dem Fussabdruck
(Befehl contextToTerrain, Knopf in der Objekt-Info, automatisch beim Geo-Import). Musterhaus komplex:
Nachbarn auf dem Gelände, Höhenlinien bis unter die Nachbarn. Rendering: Option "Baugrube ausblenden
(hinterfüllt)", Vorgabe an: Paket mit gewachsenem Gelände (meshExportData, 4. Argument); CLI --excavation.
This commit is contained in:
Claude committed 2026-11-12 23:19:26 +00:00
1 parent c032aef394
commit 840727ff22
29 files changed
+441 -37

No files matched your search

+9
View File
@@ -20,6 +20,15 @@ const p = buildComplexSampleProject();
const codes = collectVisibleCodes(p.layers);
describe("Musterhaus komplex", () => {
it("[227] Nachbargebäude stehen auf dem Gelände, nicht auf z = 0", () => {
const n = p.context?.find((c) => c.id === "nachbarn");
if (n?.type !== "importedMesh") throw new Error("Nachbarn fehlen");
const zs = n.positions.filter((_, i) => i % 3 === 2);
// Die Höhenlinien reichen bis unter die West- und Ostnachbarn; deren Fuss liegt auf dem Hang (−2.5 … −0.9 m).
expect(Math.min(...zs)).toBeLessThan(-1);
expect(Math.min(...zs)).toBeGreaterThan(-3.3);
});
it("ist gültig und deterministisch; Datei-Rundreise", () => {
expect(validateProject(p)).toEqual([]);
const warnings = projectWarnings(p);