fix(B06): 물넘이 포장 측구 끔 · 경사 = 패널 경사각 · 세월교 · 물넘이 월류 높이 점선(PLAN 66-2 · 66-3)

- 물넘이 자리 노면 · 측구 설계선 걷음 → 옛 계획고 점선(바닥 + 월류 높이)이 드러남 · 측구 자리는 바닥 끝 ~ 절토 비탈 발 실선
- 노면 경사 = ford_slope_deg(°) → % · 없으면 옛 ford_slope_pct · 둘 다 없으면 기본 3° (파이썬 · TS 짝 + 거울 시험)
- 방향 = 지금대로 절토측 높고 성토측 낮음
- 세월교 점선 = 노면 + 월류 높이(ford_height_m) · 패널에서 고치면 저장 전에도 바로 따라옴
- 물넘이 패널 월류 높이 · 경사각도 캐시 제원에 바로 얹음(폭 절반 걸친 옆 카드 포함)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYJJRCfHfdCGNhmXTjQKV7
This commit is contained in:
2026-10-06 23:41:47 +09:00
co-authored by Claude Opus 5.5
parent 5c0c8fd9c4
commit 562734b4d5
9 changed files with 176 additions and 7 deletions
+14 -2
View File
@@ -45,6 +45,7 @@ export const FORD_SLAB_THICKNESS_M = 0.3;
export const FORD_WALL_THICKNESS_M = 0.2;
export const FORD_DEFAULT_WIDTH_M = 10.0;
export const FORD_PAVEMENT_DEFAULT_WIDTH_M = 5.0;
export const FORD_PAVEMENT_DEFAULT_SLOPE_DEG = 3.0;
export const BOX_COVER_M = 0.5;
/** 관 벽 최소 높이 — 횡단도 `B06_Section_UI_Cross_Culvert_Const.ts` 와 같은 값(거울 시험이 셋을 대조).
* 높이를 안 적은 관 벽은 이 값으로 섬(2026-09-14 브레인 판정 · 옛 등록부 기본 2.5 걷음). */
@@ -330,14 +331,25 @@ function fordPavementSet(
const defaults = registry.ford_pavement ?? {};
const width = num(values.ford_width_m, num(defaults.ford_width_m, null));
const depth = num(values.ford_height_m, null);
// 노면 경사 = 경사각(°) → % (66-2) · 없으면 옛 바닥 경사(%) · 둘 다 없으면 기본 3°
const degree = num(values.ford_slope_deg, null);
const legacy = num(values.ford_slope_pct, null);
const fallback =
degree === null && legacy === null
? num(defaults.ford_slope_deg, FORD_PAVEMENT_DEFAULT_SLOPE_DEG)
: null;
const used = degree ?? fallback;
const span = width && width > 0 ? width : FORD_PAVEMENT_DEFAULT_WIDTH_M;
return {
type: "ford_pavement",
span_m: span,
// 노선 중심에서 잰 깊이. 없으면 화면이 파임을 그리지 않는다(수치를 지어내지 않는다).
depth_m: depth && depth > 0 ? depth : null,
slope_pct: num(values.ford_slope_pct, null),
defaulted: defaulted(values, [["ford_width_m", "월류 폭", span]]),
slope_pct: used !== null ? round(Math.tan((used * Math.PI) / 180) * 100, 4) : legacy,
defaulted: defaulted(values, [
["ford_width_m", "월류 폭", span],
["ford_slope_deg", "경사각", fallback],
]),
};
}