Decken-Panel: Aussparungen anzeigen + einzeln entfernen

Die Decken-Sektion listet die Aussparungen (BBox-Masse je Loch) mit
Entfernen-Knopf; Anlegen über den Befehl 'Deckenloch'. CeilingInfo.openings,
host.onRemoveCeilingOpening + App-Routing. 684/684 grün.
This commit is contained in:
2026-07-10 18:44:13 +02:00
parent aee884639e
commit 83dcdd0501
6 changed files with 48 additions and 0 deletions
+7
View File
@@ -196,6 +196,8 @@ export interface CeilingInfo {
/** Aufgelöste absolute UK/OK (Meter). */
zBottom: number;
zTop: number;
/** Aussparungen (Treppenauge/Schacht) als BBox-Masse, Reihenfolge = Modell. */
openings: { width: number; depth: number }[];
}
/**
@@ -606,6 +608,11 @@ function ceilingSelection(project: Project, ceiling: Ceiling): Selection {
bottom: ceiling.bottom,
zBottom,
zTop,
// Aussparungen als anzeigefertige BBox-Masse (Breite × Tiefe je Loch).
openings: (ceiling.openings ?? []).map((hole) => {
const bb = outlineBBox(hole);
return { width: bb.maxX - bb.minX, depth: bb.maxY - bb.minY };
}),
};
return {
kind: "ceiling",