[K4] Aufräumen: tote TS-Funktionen und Bindungen gelöscht, Höhenregeln/JS-Helfer im Kern zusammengelegt

Gelöscht: vertikale Ausdehnungen in model/wall.ts und geometry/opening.ts (ohne Aufrufer seit dem
Schnitt-Port), weitere ungenutzte Exporte (types.ts, ceiling.ts, glPlan, toWalls3d, truckSolid,
meshImport, bulge, planView) und die Bindungen doc_query, core_version, drawing3d_*,
bulge_between_angles, scatter_strokes_flat. Rust: model/helpers.rs::heights für typisierte Sicht
und rohe Wurzel, truthy/or_zero/js_string/arr je einmal.
This commit is contained in:
Claude committed 2026-10-29 13:08:08 +00:00
1 parent 24ab554c2e
commit 8b94abd854
38 files changed
+125 -505

No files matched your search

+2 -2
View File
@@ -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);
-11
View File
@@ -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,