From 59ca25b1826abd10b7995d36c5e1b58c6d22ca94 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sun, 23 Aug 2026 14:28:45 +0900 Subject: [PATCH] =?UTF-8?q?fix(B05):=20=EC=A2=85=EB=8B=A8=20=EC=84=B8?= =?UTF-8?q?=EB=B6=84=20=ED=95=98=ED=95=9C=EC=9D=B4=200.1m=20=EC=A7=80?= =?UTF-8?q?=EC=A0=95=EC=9D=84=200.5m=EB=A1=9C=20=EA=B9=8E=EB=8D=98=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit steps 계산의 Math.max(0.5, step)가 사용자가 지정한 0.1m 세분을 통째로 무시하고 있었다. 저장본이 702행(=350m/0.5m)으로 남아 있어 확인했다. 하한을 0으로 나누는 것만 막는 값(0.01)으로 낮춘다. 검증: 저장본 3,503행 · 평균 간격 0.100m 확인, 줌인 시 곡선 구간이 매끄럽게 이어짐. 편집 시 최대 프레임 갭 348ms(200ms 초과 1회) Co-Authored-By: Claude Opus 5 (1M context) --- B05_Profile/B05_Profile_UI_Corridor_Build.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/B05_Profile/B05_Profile_UI_Corridor_Build.ts b/B05_Profile/B05_Profile_UI_Corridor_Build.ts index 9dd49c43..0dd96969 100644 --- a/B05_Profile/B05_Profile_UI_Corridor_Build.ts +++ b/B05_Profile/B05_Profile_UI_Corridor_Build.ts @@ -410,7 +410,9 @@ export function buildCorridor( const s1 = stations[i + 1]; const span = s1.chainage_m - s0.chainage_m; if (span <= 1e-6) continue; - const steps = Math.max(1, Math.ceil(span / Math.max(0.5, subdivideStepM))); + // 하한은 0으로 나누는 것만 막는다 — 0.5m로 잡아 두는 바람에 0.1m 지정이 통째로 + // 깎여 종단이 계단처럼 보였다(2026-08-23 사용자 지적, 저장본 702행으로 확인). + const steps = Math.max(1, Math.ceil(span / Math.max(0.01, subdivideStepM))); const last = i === stations.length - 2; for (let k = 0; k <= (last ? steps : steps - 1); k += 1) { const t = k / steps;