fix(rebar): 조립 철근 B11·B12를 짝수 격자에 배치 (B9 홀수 격자와 겹치지 않음)
- assemblyEvenStart: 짝수 시작칸 중 양끝 여유 차이가 가장 작은 값 선택 - B12(W 방향, n 61)는 시작칸이 1(홀수)이던 것을 2(짝수)로 바꿔 B9 행선과 겹치지 않게 함 - 개수(B11 30, B12 24)와 가운데 정렬(차이 ≤ 1칸)은 그대로, 엇갈림 2칸 유지 - 테스트: 조립 철근 인덱스가 모두 짝수 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5fb2b9938f
commit
bad220d791
2 files changed
+34
-10
No files matched your search
@@ -49,4 +49,13 @@ describe('확대기초 교각축 직각 단면 (폭 W) (승인 2026-10-26, 추
|
||||
}
|
||||
expect(assemblyGridIndices(61, 8, 1)[0] - assemblyGridIndices(61, 8, 0)[0]).toBe(2);
|
||||
});
|
||||
|
||||
it('조립 철근(B11·B12)은 짝수 격자에 놓여 B9(홀수 격자)와 겹치지 않음 (확대기초철근 (1).md §9.1)', () => {
|
||||
const levels = assemblyJs(H, fs).length;
|
||||
for (const [n, k] of [[79, 8], [61, 8]] as const) {
|
||||
for (let idx = 0; idx < levels; idx++) {
|
||||
for (const i of assemblyGridIndices(n, k, idx)) expect(i % 2).toBe(0);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user