Schnitt/Ansicht: Fenster/Tueren waagrecht ziehen (Position entlang der Wirtswand), Decken im Blatt greifbar; Objekt-Info: Bauteil-Masse als Ausdehnung X/Y statt Breite/Hoehe, bei Oeffnungen keine bbox

This commit is contained in:
karim committed 2026-10-21 21:15:22 +02:00
1 parent 7410bb5f66
commit e4641357fd
7 files changed
+89 -11

No files matched your search

+3 -2
View File
@@ -60,7 +60,7 @@ export function snapSegmentsFromPrimitives(prims: readonly Primitive[]): SnapSeg
}
/** Bauteil-Art, deren Schnittflächen im Blatt gezogen werden können. */
export type SheetOwnerKind = "wall" | "ceiling";
export type SheetOwnerKind = "wall" | "ceiling" | "opening";
/**
* Schnittflächen der Ebene `levelId` je Quell-Bauteil ablegen (aus den Plan-
@@ -79,7 +79,8 @@ export function setSheetOwnerOutlines(levelId: string, prims: readonly Primitive
};
for (const p of prims) {
if (p.kind !== "polygon") continue;
if (p.wallId) add(`wall:${p.wallId}`, p.pts);
if (p.openingId) add(`opening:${p.openingId}`, p.pts);
else if (p.wallId) add(`wall:${p.wallId}`, p.pts);
else if (p.ceilingId) add(`ceiling:${p.ceilingId}`, p.pts);
}
outlinesByLevel.set(levelId, map);