fix(B05): 종단 세분 하한이 0.1m 지정을 0.5m로 깎던 문제
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user