[181] [152] Importe als eigenständige Elemente: Klasse Pflicht, Herkunft nur Auskunft, keine Import-Liste

Gelände, Höhenlinien, Netzkörper (Nachbargebäude, IFC/OBJ/STEP/DXF-Netze), Luftbilder und Baugruben
(`Project.context`) sind normale Elemente:
- Modell: `categoryCode` Pflicht (String) an allen fünf Arten; `layer` (Gruppierung) und `hidden`
  (Einzel-Ausblenden) entfallen; neu `source` (Herkunft, ohne Wirkung). `ContextObject::category_code()`.
- Kern: Plan, Schnitt, Ansicht, 3D, Pick fragen nur die Klasse ab (kein „ohne Kategorie immer sichtbar").
  IFC-Gelände (IfcSite bzw. Name Gelände/Terrain) wird beim Import ein Gelände-Element
  (`import_context::ifc_meshes`); `mesh_view::is_terrain` entfällt, geschlossene Gelände-Netze schneidet
  der Schnitt als Oberkante. Importe setzen `source` statt `layer` (IFC-Klasse, DXF-Layer, STEP-Datei).
- Objekt-Info: Klasse im Kopf änderbar und Farbe der Klasse auch für Gelände-/Umgebungs-Elemente,
  Herkunft als Auskunft; Einzel-Ausblenden-Schalter entfernt.
- Panel „Gelände": Import-Liste entfernt (nur Aktionen); Elemente-Panel mit Knoten „Gelände & Umgebung".
- swissBUILDINGS3D/OSM/swissALTI3D/SWISSIMAGE setzen Klasse und `source`; Dach-Trennung über den DXF-Layer
  beim Import.
- Musterhaus komplex nachgeführt (ohne `layer`); Doku: ARCHITEKTUR Abschnitt 8 (Entwurf), Glossar, READMEs.

Geprüft: cargo test im Kern (bis auf den Zeit-Wächter ansicht_gross_schnell unter Last), vitest (alle),
tsc, Plan-/CLI-Goldens unverändert, e2e siteSelect/excavation/terrainHide angepasst und grün.
Musterhaus komplex mit zwei Nachbarnetzen: Grundriss EG/UG 1:200, Schnitt A-A, Ansicht Süd per CLI
vor/nach byte-gleich (angesehen). Nicht in der Tauri-App/auf dem Mac geprüft.
This commit is contained in:
Claude committed 2026-11-11 04:00:16 +00:00
1 parent a4c541bc50
commit cb9d8c3b0f
70 files changed
+616 -710

No files matched your search

+2 -2
View File
@@ -122,10 +122,10 @@ describe("Rundreise Export → Import", () => {
const { products } = await inspectIfc(bytes);
expect(products.find((p) => p.ifcClass === "IfcRoof")?.classifications?.[0]).toMatchObject({ system: "eBKP-H", code: "F" });
const r = await importIfcInto(sampleProject, bytes, { group: "product" });
const roof = r.meshes.find((m) => m.layer === "IfcRoof")!;
const roof = r.meshes.find((m) => m.source === "IFC IfcRoof")!;
expect(roof.name).toMatch(/ \[eBKP-H F\]$/);
// Ohne Klassifikation kein Zusatz.
expect(r.meshes.find((m) => m.layer === "IfcStairFlight")?.name).not.toMatch(/\[/);
expect(r.meshes.find((m) => m.source === "IFC IfcStairFlight")?.name).not.toMatch(/\[/);
});
});
+2 -2
View File
@@ -42,7 +42,7 @@ const CUBE_IDX = [0, 2, 1, 0, 3, 2, 4, 5, 6, 4, 6, 7, 0, 1, 5, 0, 5, 4, 1, 2, 6,
function withContext(base: Project): Project {
const imported: ImportedMesh = {
id: "IM1",
type: "importedMesh",
type: "importedMesh", categoryCode: "10",
name: "Nachbar",
color: "#ff0000",
positions: CUBE_POS.map((v, i) => (i % 3 === 0 ? v + 20 : v)),
@@ -50,7 +50,7 @@ function withContext(base: Project): Project {
};
const terrain: TerrainMesh = {
id: "TM1",
type: "terrainMesh",
type: "terrainMesh", categoryCode: "02",
name: "Gelände",
positions: [-5, -5, 0, 25, -5, 0, 25, 25, 0, -5, 25, 0],
indices: [0, 1, 2, 0, 2, 3],