Merge [191] Baugrube mit Bögen

This commit is contained in:
Claude committed 2026-11-12 06:19:13 +00:00
commit cd76a2475c
23 files changed
+678 -105

No files matched your search

+1 -1
View File
@@ -405,7 +405,7 @@ export interface ProjectSlice {
/** [193] Netzpunkt eines Geländes/Netzes im Grundriss verschieben (Höhe bleibt). */
moveMeshPoint: (id: string, index: number, pt: Vec2) => void;
/** [191] Bogen-Scheitel der Kante `seg` (Dach: flacher Index) ziehen: setzt den Bulge über die Pfeilhöhe. */
setRingArc: (kind: "roof" | "ceiling" | "room", id: string, seg: number, pt: Vec2, coalesceKey?: string) => void;
setRingArc: (kind: "roof" | "ceiling" | "room" | "excavation", id: string, seg: number, pt: Vec2, coalesceKey?: string) => void;
/** [26] Nach dem Ziehen: Ecke auf Nachbar bzw. Gerade zwischen den Nachbarn entfällt. */
tidyRingVertex: (kind: RingKind, id: string, index: number, coalesceKey?: string, tol?: number) => void;
moveExcavationEdge: (id: string, aIndex: number, bIndex: number, delta: Vec2) => void;
+6 -3
View File
@@ -572,7 +572,10 @@ export function useGripEditing(opts: {
if (modelEditable && selectedExcavation && !selectedCeiling && effectiveDrawingIds.length === 0 && selectedWallIds.length === 0) {
const pts = excavationGripPoints(selectedExcavation);
pts.forEach((_, i) => { gripOwners.push({ localIndex: i }); gripOwnerRange.push([0, pts.length - 1]); });
pushInsertGrips(pts, [{ pts: selectedExcavation.outline, off: 0 }], { kind: "excavation", id: selectedExcavation.id });
// [191] Bogenkanten: Einfüge-Raute auf dem Bogen, Scheitel-Griff wie bei Decken.
const rings = [{ pts: selectedExcavation.outline, off: 0, bulge: selectedExcavation.outlineBulge }];
pushInsertGrips(pts, rings, { kind: "excavation", id: selectedExcavation.id });
pushArcGrips(pts, rings, { kind: "excavation", id: selectedExcavation.id });
return pts;
}
// Decke: die Umriss-Vertices als Griffe (nur bei genau einer gewählten Decke,
@@ -722,7 +725,7 @@ export function useGripEditing(opts: {
);
}
if (modelEditable && selectedExcavation && !selectedCeiling && effectiveDrawingIds.length === 0 && selectedWallIds.length === 0) {
return ringEdges(selectedExcavation.outline, {});
return ringEdges(selectedExcavation.outline, {}, selectedExcavation.outlineBulge ?? []);
}
// Decke: geschlossener Ring aus dem Umriss (Auswahl exklusiv, wie bei grips).
if (modelEditable && selectedCeiling && effectiveDrawingIds.length === 0 && selectedWallIds.length === 0) {
@@ -1196,7 +1199,7 @@ export function useGripEditing(opts: {
}
const ins = gripOwners[index];
// [191] Scheitel-Griff einer Bogenkante: Bulge live, ein Undo-Schritt je Zug.
if (modelEditable && ins?.arcSeg != null && ins.ring && ins.ring.kind !== "excavation" && ins.ring.kind !== "polyline" && ins.ring.kind !== "contours") {
if (modelEditable && ins?.arcSeg != null && ins.ring && ins.ring.kind !== "polyline" && ins.ring.kind !== "contours") {
storeState().setRingArc(ins.ring.kind, ins.ring.id, ins.arcSeg, pt);
return;
}