Files
DOSSIER/src/core/extra.ts
T
Claude 6d84697163 [201] IFC-GlobalId-Rundreise, Normalen in glTF/OBJ
- ifcGlobalId an Wand, Öffnung, Decke, Stütze, Dach, Treppe, Raum, Extrusionskörper: Import setzt sie, Export schreibt sie zurück
  (Datensatz GUIDS), sonst weiter abgeleitet; doppelte/ungültige fallen auf die abgeleitete zurück. Kopieren, Einfügen, Reihe,
  Spiegeln und Wand teilen setzen sie nicht mit. BCF-Zuordnung nimmt sie.
- glTF/GLB mit NORMAL, OBJ mit vn/usemtl und .mtl (zweite Datei: zweiter Speichern-Dialog, CLI schreibt beide). Normalen aus
  hatchgen/mesh_normals.rs, derselben Funktion wie die 3D-Anzeige (aus render3d verschoben).
- Doku DATEIFORMATE.md und TODO.md nachgeführt.
2026-11-12 09:20:42 +00:00

99 lines
7.9 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 { buildPlanDxfBinary } from "../export/exportDxf";
export { loadFileio } from "../engine/fileioWasm";
export { readIfcFlat } from "../io/ifcImport";
export { parseBcf, writeBcf, bcfInfo } from "../io/bcf";
export { projectGeoOrigin } from "../model/geoRebase";
export { ensureContextCategories } from "../model/contextCategories";
export { projectToWorldCoords } from "../model/geoRebase";
export { exportScheduleCsv } from "../export/exportSchedule";
export { exportObj, exportMtl, exportStl, exportGlb, exportGltf } from "../export/exportMesh";
export { exportProjectStep } from "../export/exportStep";
export { planToSvgString } from "../export/planToSvgString";
export { setWasmBytesProvider } from "../engine/wasmSource";
export { initCore } from "../engine/coreWasm";
export { applyOps, validateProject, validateOps } from "./ops";
export { projectWarnings } from "./ops";
export type { CoreOp } from "./ops";
export type { Project, DrawingLevel, ViewTemplate } from "../model/types";
export { computeKennzahlen, checkRoomProgram, solidVolume } from "../analysis/kennzahlen";
export type { Kennzahlen, ProgramCheck } from "../analysis/kennzahlen";
export { compareRoomProgram, layoutRoomProgram, DEFAULT_PROGRAM_TOLERANCE } from "../analysis/roomProgram";
export { buildProgramSheet, addProgramSheet, addProgramSheetOps, groupColor, defaultSheetLabels } from "../analysis/roomProgramSheet";
export type { ProgramSheet, SheetLabels } from "../analysis/roomProgramSheet";
export type { RoomProgramCompare, RoomProgramLayout, CompareRow, CompareSum, Light, LayoutItem, LayoutGroup } from "../analysis/roomProgram";
export { readSheetFile, suggestMapping, mapRows, importedRows, applyRoomProgram, roomProgramOps, cellNumber, cellText, detectHeaderRow, parseKind, PROGRAM_FIELDS } from "../io/roomProgramImport";
export type { SheetData, SheetCell, Mapping, ColumnMap, ProgramField, ImportLine, ImportMode, SkipReason } from "../io/roomProgramImport";
export { buildProgramReport } from "../export/programReport";
export { openingSchedule, buildOpeningReport, roomsText, externalText, swingText } from "../export/openingSchedule";
export type { OpeningScheduleRow } from "../export/openingSchedule";
export { revealColumns, revealArea } from "../export/openingSchedule";
export type { RevealArea } from "../export/openingSchedule";
export { elementSchedule, uValueOf, uValueText, buildElementReport } from "../export/elementSchedule";
export type { ElementScheduleRow, UValueResult, ElementKind } from "../export/elementSchedule";
export { roomBook, buildRoomBookReport, usageLabel, hasSlope, ROOM_USAGES } from "../export/roomBook";
export type { RoomBook, RoomBookRow, FinishQty, WallSide } from "../export/roomBook";
export { sheetTables, createTable, drawTablesPdf, tableCatalog, tableLabels, tableSourceLabel, TABLE_SOURCES } from "../export/sheetTable";
export type { TableOut, TablePrim, TableColumn } from "../export/sheetTable";
export { computeAreaTable, computeIvhb } from "../analysis/areaTable";
export type { AreaTable, AreaRow, Ivhb, IvhbOptions, AgfBasis } from "../analysis/areaTable";
export { buildAreaReport, areaReportToCsv, parseAreaReportCsv, areaReportToSvg, buildAreaReportPdf } from "../export/areaReport";
export type { AreaReport, AreaReportOptions } from "../export/areaReport";
export { sunPosition, shadowPolygons, shadowOfPrism, projectLatLon } from "../analysis/sun";
export type { SunPosition } from "../analysis/sun";
export { checkSiteRules, allowedArea, multiPolygonArea, buildingFootprint, modelTop } from "../analysis/siteRules";
export { siteEnvelope3d } from "../analysis/siteRules";
export { excavationQuantities, type ExcavationQuantity } from "../analysis/excavation";
export type { SiteCheck } from "../analysis/siteRules";
export { sampleProject } from "../model/sampleProject";
export { parseDxf } from "../io/dxfParser";
export { ProjectDocument, sharedDocument } from "./document";
export { withDocument } from "./document";
export { emptyProject } from "../model/sampleProject";
export { buildComplexSampleProject } from "../model/sampleProjectComplex";
export { buildBigSampleProject } from "../model/sampleProjectBig";
export { readPointCloud, readPointCloudFlat, isPointCloudFile, DEFAULT_MAX_POINTS } from "../io/pointCloud";
export type { PointCloudData, PointCloudOptions, PointCloudReport } from "../io/pointCloud";
export { readPdfVector, pdfImport, pdfPageInfo, isPdfFile, PDF_SCALES } from "../io/pdfVector";
export type { PdfVectorPage, PdfVectorPath, PdfVectorText } from "../io/pdfVector";
export { readMesh, readMeshFlat, formatMeshReport, isMeshFile, MESH_UNITS, MESH_UNIT_SCALE } from "../io/meshImport";
export type { MeshImportReport, MeshUnit, MeshUp, MeshPlacement } from "../io/meshImport";
export { addedItems } from "./opsBuild";
export { addItems, fieldOps, findItem, itemsOf, opsMutation, patchItem, patchItems, removeItems, replaceItem, replaceWithMany, setField, setFieldIfChanged } from "./opsBuild";
export { cmdMutation } from "./document";
export type { EntityCollection, EntityOf, ProjectMutation } from "./opsBuild";
export { EMPTY_MEMBERSHIP, containingGroupId, expandToGroups, isInsideActiveGroup, transitiveMembership } from "../model/groups";
export type { GroupMembership, MemberKind } from "../model/groups";
export { arcApex, drawingVertices, gripPt, openEdges, polylineEdgeGrips, ringEdges } from "../geometry/grips";
export { verticalExtents } from "../geometry/grips";
export type { VerticalExtent } from "../geometry/grips";
export type { GripRequest, RingKind } from "../geometry/grips";
export { edgeArcToggle, type ArcRingKind } from "../geometry/grips";
export { clampInside, coincidentGripPoints, excavationGripPoints, gripArcWallRadius, gripArcWallResize, gripArcWallTarget, gripAxisLock, gripEdgeTarget, gripPolar, gripPolarPoint, openingGripPoint, openingSheetSlide, openingTypedPosition, contourMarks, sheetHeightDrag, snapSheetHeight, stairMoveHandle, stairParamPoints, wallGripPoints } from "../geometry/gripDrag";
export type { EdgeDrive, GripLocks, SheetHeightKind } from "../geometry/gripDrag";
export { openingPreviewProject, openingPreviewSvgs } from "../plan/openingPreview";
export type { OpeningPreviewSvgs } from "../plan/openingPreview";
export { surfaceOpeningInfo, surfaceOpeningGrips, surfaceOpeningGripPatch } from "../plan/surfaceOpening";
export type { SurfaceOpeningInfo } from "../plan/surfaceOpening";
export { AI_TOOLS, AI_BRIDGE_DEFAULT_PORT, aiText, aiToolDef, hmacHex, randomHex, sameMac } from "./aiToolDefs";
export type { AiToolDef, AiToolResult, AiBridgeMsg } from "./aiToolDefs";
export { callAiTool } from "./aiTools";
export type { AiHost } from "./aiTools";
export { PRESENTATION_TEMPLATE_ID, presentationDefaults, presentationSheetOps, planPresentationSheet } from "../plan/presentationSheet";
export type { PresentationOptions, PresentationPlan, PresentationLabels } from "../plan/presentationSheet";
export { lineEndsOf, lineEndsCode, lineEndsFromCode, lineEndsSvgAttrs, planLineEndsProps, MITER_LIMIT as LINE_MITER_LIMIT } from "../model/lineEnds";
export type { LineEnds } from "../model/lineEnds";
export type { LineCap, LineJoin } from "../model/types";
export { standardOverrideRules } from "../model/standards";
export { standardModelViews } from "../model/standards";
export { recognizeMutation, recognizeReport, recognizeSourceLevels } from "../io/recognizeDrawing";
export type { RecognizeOptions, RecognizeReport, RecognizeUnclear } from "../io/recognizeDrawing";
export { meshGripIndices, growRect, nearestMeshVertex, meshTolerance } from "../geometry/meshPick";
export type { MeshRect } from "../geometry/meshPick";