[271][272][215] Exporte und Rendering folgen Umbaufilter und Variantenkombination der Ansicht

Gemeinsame Ansicht export/exportView.ts (Umbaufilter, Etappe, Kombination der aktiven Ebene) als EIN Weg in IFC, OBJ/STL/glTF, STEP,
Blender-Paket und Cycles-Szene (Text der Kern-Abfragen, renovation::view_from_text). Cycles-Szene: Ausgeblendetes fehlt, Umbau-Farben nur
auf Wunsch (renovationColors, cycles_scene_styled); Explosionsaxonometrie bekommt die Umbau-Farben, Pick/Explosion folgten dem Filter schon.
App: Export-Dialog und Rendering-Dialog zeigen die Ansicht und lassen Hauptvarianten/kein Filter wählen; Häkchen Umbau-Farben im Bild.
CLI: --renovation/--phase auch für ifc, obj, stl, glb, gltf, step, render, blend; render --engine cycles --renovation-colors.
Tests: Kern export_view_tests.rs, vitest exportView/exportViewState/render, e2e exportView271; Bilder doc/review-272/07-09.
This commit is contained in:
Claude committed 2026-11-17 15:40:12 +00:00
1 parent 78791a347a
commit 2fb42aac07
32 files changed
+695 -42

No files matched your search

+5 -1
View File
@@ -13,6 +13,8 @@
import type { Project } from "../model/types";
import { fileio } from "../engine/fileioWasm";
import type { ExportView } from "./exportView";
import { exportViewText } from "./exportView";
import { documentFor } from "../core/document";
/** IFC-Schema der Ausgabe: IFC4 (Standard) oder IFC2x3 (Coordination View 2.0, TC1). */
@@ -34,6 +36,8 @@ export interface IfcExportOptions {
* (IfcBuildingElementProxy „Kontext"), am IfcSite. Ohne Angabe nicht: Fachplaner wollen meist nur das Gebäude.
*/
context?: boolean;
/** [271][272] Ansicht der Ausgabe: Umbaufilter und Variantenkombination (ohne Angabe kein Filter, Hauptvarianten). */
view?: ExportView;
}
/** Deterministische 22-stellige IFC-GUID aus einem Namen (Rust, `ifc_export::ifc_guid`). */
@@ -79,7 +83,7 @@ export function exportIfcSpf(project: Project, options: IfcExportOptions = {}):
const now = Date.now();
const iso = new Date(now).toISOString().replace(/\.\d+Z$/, "");
const args = [Math.floor(now / 1000), options.schema === "IFC2X3" ? 1 : 0, options.ebkph ? 1 : 0, options.layerCodes ? 1 : 0, options.context ? 1 : 0];
const [buf, strings] = decodeExportFlat(documentFor(project).queryBin("ifcExportData", args, iso));
const [buf, strings] = decodeExportFlat(documentFor(project).queryBin("ifcExportData", args, exportViewText(options.view, { iso })));
const m = fileio();
const text = m.export_ifc_flat(buf, strings);
if (text.length === 0) {