Files
DOSSIER/src/core/extra.ts
T
Claude e57053029b [B3] IFC-Import als Mesh: STEP-Leser und Geometrie in Rust (fileio), Kontext-Meshes je Bauteil
- src-tauri/fileio/src/ifc_step.rs: ISO-10303-21-Leser (\X2\/\X4\/\X\/\S\, komplexe Instanzen,
  Fehlererholung, Grenzen), eigener Code.
- src-tauri/fileio/src/ifc_import.rs: IfcExtrudedAreaSolid (Arbitrary/Rechteck/Kreis/I/L/U/T/Derived/
  Composite, Löcher, Polyline/IndexedPolyCurve/CompositeCurve/TrimmedCurve), FacetedBrep, Shell-/
  FaceBasedSurfaceModel, Triangulated-/PolygonalFaceSet, MappedItem, Block, CSG, Boolean (Union ganz,
  sonst 1. Operand), Platzierungsketten, Einheiten mit Präfix/Umrechnung, Geschoss, Farbe;
  Unbekanntes wird gezählt, nie Panic. Bindung import_ifc (Float64Array/Uint32Array + JSON-Bericht).
- src/io/ifcImport.ts: Fassade, je Bauteil ein ImportedMesh (Ebene = IFC-Klasse, ab 2000 Bauteilen je
  Klasse+Geschoss), Rückschub aus LV95 bei Standort-Bezug; App: Menü „IFC importieren …“, Import-Dialog
  und Drag & Drop für .ifc; CLI import-ifc (Bericht als JSON, --out neues Projekt; Plan zeigt jetzt
  verschachtelte Ebenen-Codes).
- Tests: Rust je Geometrietyp + Unsinn; Rundreise mit exportIfcSpf (Bauteile je Klasse, Volumen je
  Wand/Decke); Gegencheck mit ifcopenshell (scripts/ifc-import-compare.py), optional
  DOSSIER_IFC_SAMPLES für die buildingSMART-Beispieldateien.
- earcutr (ISC) als Abhängigkeit, NOTICE.
2026-10-28 10:45:54 +00:00

29 lines
1.8 KiB
TypeScript

// Von Hand gepflegter Teil der Fassade: Kern-Einstiege, die nicht (nur) die Hülle braucht — Datei-
// Format, Exporte, WASM-Quelle. Genutzt von `dossier-cli` (src/cli), das NUR `src/core` importiert.
export { parseProjectFile, serializeProject, PROJECT_FORMAT_VERSION } from "../io/projectFormat";
export { exportIfcSpf } from "../export/exportIfc";
export { buildPlanDxf } from "../export/exportDxf";
export { buildPlanDwg } from "../export/exportDxf";
export { loadFileio } from "../engine/fileioWasm";
export { readIfc, ifcToImportedMeshes } from "../io/ifcImport";
export { projectGeoOrigin } from "../model/geoRebase";
export { ensureContextCategories } from "../model/contextCategories";
export { projectToWorldCoords } from "../model/geoRebase";
export { exportScheduleCsv } from "../export/exportSchedule";
export { exportObj, exportStl } from "../export/exportMesh";
export { exportProjectStep } from "../export/exportStep";
export { planToSvgString } from "../export/planToSvgString";
export { setWasmBytesProvider } from "../engine/wasmSource";
export { initCore, coreReady } from "../engine/coreWasm";
export { applyOps, diffToOps, validateProject, validateOps } from "./ops";
export type { CoreOp } from "./ops";
export type { Project, DrawingLevel } from "../model/types";
export { computeKennzahlen, checkRoomProgram, solidVolume } from "../analysis/kennzahlen";
export type { Kennzahlen, ProgramCheck } from "../analysis/kennzahlen";
export { sunPosition, shadowPolygons, shadowOfPrism, projectLatLon } from "../analysis/sun";
export type { SunPosition } from "../analysis/sun";
export { checkSiteRules, allowedArea, multiPolygonArea, buildingFootprint, modelTop } from "../analysis/siteRules";
export type { SiteCheck } from "../analysis/siteRules";
export { encodeRenderScene } from "../plan/renderSceneBin";