[K4][G10] Merge: Aufräumen (tote TS-/Rust-Doppelspuren), id-Index, Commit ohne Kopie, Punkttyp im Kern; Tests unter Last stabil
CLAUDE.md: Dokument im Kern, Modulkarte nachgeführt. Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
53 files changed
+1293
-1043
No files matched your search
@@ -14,7 +14,7 @@ import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
import { exportIfcSpf, ifcGuid } from "../export/exportIfc";
|
||||
import { sampleProject } from "../model/sampleProject";
|
||||
import { ceilingVerticalExtent } from "../model/wall";
|
||||
import { verticalExtents } from "../geometry/grips";
|
||||
import { polygonArea } from "../geometry/roomArea";
|
||||
import { wallMeshVolumes } from "../export/meshScene.testutil";
|
||||
import { formatIfcReport, handleIfcWorkerRequest, ifcToImportedMeshes, readIfc, type IfcProduct, type IfcWorkerRequest } from "./ifcImport";
|
||||
@@ -100,7 +100,7 @@ describe("IFC-Import: Rundreise mit dem eigenen Export", () => {
|
||||
const slabsExpected = (sampleProject.ceilings ?? [])
|
||||
.filter((c) => c.outline.length >= 3)
|
||||
.map((c) => {
|
||||
const { zBottom, zTop } = ceilingVerticalExtent(sampleProject, c);
|
||||
const { zBottom, zTop } = verticalExtents(sampleProject, [], [c]).ceilings[0];
|
||||
return Math.abs(polygonArea(c.outline)) * Math.max(zTop - zBottom, 0.001);
|
||||
})
|
||||
.sort((a, b) => a - b);
|
||||
|
||||
@@ -346,17 +346,6 @@ export function meshObjectsToImportedMeshes(objects: readonly MeshObject[], file
|
||||
});
|
||||
}
|
||||
|
||||
/** Datei-Bytes → Kontext-Meshes + Bericht. */
|
||||
export async function meshBytesToImportedMeshes(
|
||||
bytes: Uint8Array,
|
||||
fileName: string,
|
||||
read?: MeshReadOptions,
|
||||
place?: MeshToContextOptions,
|
||||
): Promise<{ meshes: ImportedMesh[]; report: MeshImportReport }> {
|
||||
const { objects, report } = await readMesh(bytes, fileName, read);
|
||||
return { meshes: meshObjectsToImportedMeshes(objects, fileName, place), report };
|
||||
}
|
||||
|
||||
/** Bericht als kurzer Text; `tr` übersetzt (Kern kennt kein i18n, die Hülle reicht `t` herein). */
|
||||
export function formatMeshReport(
|
||||
r: MeshImportReport,
|
||||
|
||||
Reference in new issue
Block a user