diff --git a/src/core/rebar/footing.ts b/src/core/rebar/footing.ts index 698ed08..d09eabb 100644 --- a/src/core/rebar/footing.ts +++ b/src/core/rebar/footing.ts @@ -119,7 +119,8 @@ export function sideBars(L: number, W: number, H: number, f: FootingRebarSetting const levels = b10Levels(H, f); const hook = hookLength('main90', d('S19')); return [ - { name: 'B10-1', size: 'S19', count: levels * 2, length: L - 2 * depth2 + 2 * hook }, + // B10-1 lowest level (z = c_b) is removed: the 하면 1단 B2·B4 take its place at the corner (승인 2026-10-26). + { name: 'B10-1', size: 'S19', count: (levels - 1) * 2, length: L - 2 * depth2 + 2 * hook }, { name: 'B10-2', size: 'S19', count: levels * 2, length: W - 2 * depth1 + 2 * hook }, ]; } diff --git a/src/view/footing-section-svg.ts b/src/view/footing-section-svg.ts index 1bc772e..6648008 100644 --- a/src/view/footing-section-svg.ts +++ b/src/view/footing-section-svg.ts @@ -109,10 +109,11 @@ export function footingSectionSvg(model: PierModel): string { const b9 = b9Bars(L, W, [], 2000, fs); for (const n of [...new Set(b9.bars.map((b) => b.n))]) parts.push(vline('b9', 'B9', x(n), y(z.B24), y(z.B5), COLOR.b9)); - // B10-1: green points at both W faces, one per level (9 levels), at the side depth of the table. + // B10-1: green points at both W faces, one per level above the lowest (8 of 9 levels), at the side depth of the table. const levels = b10Levels(H, fs); const dB1 = sideDepth(NOMINAL_DIAMETER.S29, NOMINAL_DIAMETER.S19, fs); - for (let j = 0; j < levels; j++) { + // The lowest level is removed (승인 2026-10-26): the 하면 1단 B2·B4 take its place at the corner. + for (let j = 1; j < levels; j++) { const zj = fs.cBottom + j * fs.sV; parts.push(dot('b10', 'B10-1', x(-W / 2 + dB1), y(zj), COLOR.b10, 2.2)); parts.push(dot('b10', 'B10-1', x(W / 2 - dB1), y(zj), COLOR.b10, 2.2)); diff --git a/src/view/rebar3d.ts b/src/view/rebar3d.ts index 58bfb5c..c3df6e5 100644 --- a/src/view/rebar3d.ts +++ b/src/view/rebar3d.ts @@ -466,7 +466,8 @@ export function buildRebar3D(m: PierModel, common: Material = DEFAULT_MATERIAL, // B10-1: along s at the W faces, 19.1 above B10-2; its ends turn inward along n. const np = sg * nEdge; const zb = zj + dB10; - polyline('B10-1', [[f.s - sEdge, zb, np - sg * hookB10], [f.s - sEdge, zb, np], [f.s + sEdge, zb, np], [f.s + sEdge, zb, np - sg * hookB10]], NOMINAL_DIAMETER.S19); + // The lowest B10-1 level is removed (승인 2026-10-26): the 하면 1단 B2·B4 take its place at the corner. + if (j > 0) polyline('B10-1', [[f.s - sEdge, zb, np - sg * hookB10], [f.s - sEdge, zb, np], [f.s + sEdge, zb, np], [f.s + sEdge, zb, np - sg * hookB10]], NOMINAL_DIAMETER.S19); } } // B11 (across W, spread along L) and B12 (along L, spread across W) at the assembly levels, 4s apart, 2s stagger per level. diff --git a/tests/rebar-footing.test.ts b/tests/rebar-footing.test.ts index 29e4dfb..2883b27 100644 --- a/tests/rebar-footing.test.ts +++ b/tests/rebar-footing.test.ts @@ -51,9 +51,9 @@ describe('확대기초 철근 (확대기초철근 (1).md, plan C5)', () => { expect(bars.find((b) => b.name === 'B6')!.length).toBeCloseTo(11396, 0); }); - it('B10-1 18 bars ≈ 10748, B10-2 18 bars ≈ 8494', () => { + it('B10-1 16 bars ≈ 10748 (lowest level removed), B10-2 18 bars ≈ 8494', () => { const [b101, b102] = sideBars(L, W, H); - expect(b101.count).toBe(18); + expect(b101.count).toBe(16); expect(b101.length).toBeCloseTo(10748, 0); expect(b102.count).toBe(18); expect(b102.length).toBeCloseTo(8494, 0); diff --git a/tests/rebar-summary.test.ts b/tests/rebar-summary.test.ts index b8915ab..0ac70ed 100644 --- a/tests/rebar-summary.test.ts +++ b/tests/rebar-summary.test.ts @@ -35,10 +35,10 @@ describe('③ 철근표 요약 (P1)', () => { expect(count('P6')).toBe(32); }); - it('footing: B1–B4 31 each, B5–B8 40 each, B10-1 18, B10-2 18, B11 30, B12 24 (k = 8)', () => { + it('footing: B1–B4 31 each, B5–B8 40 each, B10-1 16, B10-2 18, B11 30, B12 24 (k = 8)', () => { for (const n of ['B1', 'B2', 'B3', 'B4']) expect(count(n)).toBe(31); for (const n of ['B5', 'B6', 'B7', 'B8']) expect(count(n)).toBe(40); - expect(count('B10-1')).toBe(18); + expect(count('B10-1')).toBe(16); expect(count('B10-2')).toBe(18); expect(count('B11')).toBe(30); expect(count('B12')).toBe(24); diff --git a/tests/rebar3d.test.ts b/tests/rebar3d.test.ts index d0d70e6..27102c0 100644 --- a/tests/rebar3d.test.ts +++ b/tests/rebar3d.test.ts @@ -108,8 +108,8 @@ describe('확대기초 B9 · B10 · B11 · B12 in 3D (확대기초철근 (1).md expect(rb.byName.get('B9')!.length).toBe(306 * 3); }); - it('B10-1 / B10-2: 18 each (9 levels × 2 faces); B11 30, B12 24 at k = 8 — one tube per bar (bends rounded, 수정 2026-10-23)', () => { - expect(rb.byName.get('B10-1')!.length).toBe(18); + it('B10-1: 16 (8 levels × 2 faces, lowest removed); B10-2: 18 (9 levels × 2 faces); B11 30, B12 24 at k = 8 — one tube per bar (bends rounded, 수정 2026-10-23)', () => { + expect(rb.byName.get('B10-1')!.length).toBe(16); expect(rb.byName.get('B10-2')!.length).toBe(18); expect(rb.byName.get('B11')!.length).toBe(30); expect(rb.byName.get('B12')!.length).toBe(24);