Rust-Kern Etappe 0 + erster Teil Etappe 1: Crate dossier-core (src-tauri/core), einmal geladen, synchron aufgerufen; Polygon-Booleans aus Rust (i_overlay) ersetzen polygon-clipping
- src-tauri/core: flache f64-Kodierung fuer die WASM-Grenze, Polygon-Booleans (Vereinigung/Differenz/Schnitt, Umlaufsinn-unabhaengig wie polygon-clipping, Unsinn verworfen statt Panic); cargo-Tests - engine/coreWasm.ts: initCore() vor dem ersten Render (main.tsx, alle Fenster), CLI mit Byte-Provider, Vitest per Setup-Datei; core() synchron - geometry/polygonBool.ts: Fassade mit gleicher Datenform; Schatten, Baurecht, Aussenbemassung, Dach-Skelett, Aussparungen und 2D-Booleans umgestellt; polygon-clipping aus den Abhaengigkeiten entfernt (Lockfile wieder synchron mit package.json) - Tests: Walm auf L prueft Dachebenen statt Zahl konvexer Stuecke, Aussparung mikrometergenau (Ganzzahlraster) - check.mjs/CI bauen und testen das neue Crate; CLAUDE.md: neuer Kern-Code entsteht in Rust Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
29 files changed
+1238
-157
No files matched your search
@@ -7,8 +7,8 @@
|
||||
// • Gebäude-Grundfläche: Wände aller Geschosse und freie Körper (ohne Abzugskörper). Vorsprünge
|
||||
// (Dachüberstand, Balkone) und ihre Sonderregeln zählen nicht.
|
||||
|
||||
import polygonClipping from "polygon-clipping";
|
||||
import type { MultiPolygon, Pair, Polygon as PcPolygon } from "polygon-clipping";
|
||||
import * as polygonClipping from "../geometry/polygonBool";
|
||||
import type { MultiPolygon, Pair, Polygon as PcPolygon } from "../geometry/polygonBool";
|
||||
import type { Project, SiteRules, Vec2 } from "../model/types";
|
||||
import { getFloor, getWallType, wallTypeThickness } from "../model/types";
|
||||
import { wallVerticalExtent } from "../model/wall";
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
// Dächern als Vereinigung konvexer Hüllen (Prisma ∪ verschobenes Prisma). Modell: x = Ost,
|
||||
// y = Nord, Höhen über dem Geländenullpunkt (Meter).
|
||||
|
||||
import polygonClipping from "polygon-clipping";
|
||||
import type { Pair, Polygon as PcPolygon } from "polygon-clipping";
|
||||
import * as polygonClipping from "../geometry/polygonBool";
|
||||
import type { Pair, Polygon as PcPolygon } from "../geometry/polygonBool";
|
||||
import type { Project, Vec2 } from "../model/types";
|
||||
import { wallVerticalExtent } from "../model/wall";
|
||||
import { roofBaseElevation, roofGeometry } from "../geometry/roof";
|
||||
|
||||
Reference in new issue
Block a user