fix(bearing): C4·C5 are the 교축 distances from the bearing to the block edges (승인 2026-10-26)
- bearingEdgeDistances now reads the block geometry: 분리 1200 blocks are centred on the bearing (600 / 600); 일체 uses the pair's 2500 block (outer margins 601, within the 5 mm tolerance of 600). - The plan labels C4 and C5 from these values; the coping-edge definition is removed. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b3a62850ab
commit
9b79083d50
4 files changed
+35
-23
No files matched your search
+17
-11
@@ -2,7 +2,7 @@ import type { BlockModel, PierModel } from './geometry';
|
||||
|
||||
/**
|
||||
* 받침 배치 규칙 (승인 2026-10-26).
|
||||
* - C4·C5: 코핑 가장자리(교각축 직각, 폭 B의 두 가장자리)와 받침 중심 사이 거리. 모델값을 쓰고 도면값과 비교한다.
|
||||
* - C4·C5: 교축 방향, 받침 중심과 받침블럭 연단 사이 거리 (승인 2026-10-26). 블록 형상에서 계산하고 도면값과 비교한다.
|
||||
* - 일체: 같은 순서끼리 (전열 1 · 후열 1, 전열 2 · 후열 2 …, 각 열의 번호 순) 두 받침의 편심거리가 100 mm를 넘으면 분리를 우선한다.
|
||||
* (P1 은 전열 1–5, 후열 6–10 으로 번호가 매겨져 있어서 번호 자체가 아니라 열 안의 순서로 짝짓는다.)
|
||||
* 편심거리 = 두 받침 중심의 교각축 방향 차이 |s(전열) − s(후열)|.
|
||||
@@ -12,9 +12,9 @@ export const PAIR_ECCENTRICITY_LIMIT_MM = 100;
|
||||
export interface EdgeDistance {
|
||||
no: number;
|
||||
row: BlockModel['row'];
|
||||
/** 교각축 직각 방향: 코핑 한쪽 가장자리(n = −B/2)에서 받침 중심까지 (mm) = C4. */
|
||||
/** 교축 방향: 받침 중심에서 블록의 낮은 쪽(−n) 연단까지 (mm) = C4. */
|
||||
leftMm: number;
|
||||
/** 받침 중심에서 코핑 다른 가장자리(n = +B/2)까지 (mm) = C5. */
|
||||
/** 교축 방향: 받침 중심에서 블록의 높은 쪽(+n) 연단까지 (mm) = C5. */
|
||||
rightMm: number;
|
||||
}
|
||||
|
||||
@@ -27,15 +27,21 @@ export interface PairEccentricity {
|
||||
allowed: boolean;
|
||||
}
|
||||
|
||||
/** C4·C5 from the model: distances from the two coping edges (±B/2, across the coping width) to each bearing centre (mm). */
|
||||
/**
|
||||
* C4·C5 from the block geometry: distances along the 교축 from each bearing centre to the block edges (mm).
|
||||
* 분리: the 1200 block is centred on its bearing, so both are 600. 일체: the pair's 2500 block, so the outer
|
||||
* margins are 600 (C1) and the inner ones run to the other bearing.
|
||||
*/
|
||||
export function bearingEdgeDistances(m: PierModel): EdgeDistance[] {
|
||||
const half = m.copingB / 2;
|
||||
return m.blocks.map((b) => ({
|
||||
no: b.no,
|
||||
row: b.row,
|
||||
leftMm: (b.n + half) * 1000,
|
||||
rightMm: (half - b.n) * 1000,
|
||||
}));
|
||||
const HALF_SEPARATE = 0.6; // 1200 / 2, m
|
||||
const HALF_INTEGRATED = 1.25; // 2500 / 2, m
|
||||
return m.blocks.map((b) => {
|
||||
const host = m.integratedBlocks.find((x) => (b.row === '전열' ? x.frontNo : x.backNo) === b.no);
|
||||
const half = host ? HALF_INTEGRATED : HALF_SEPARATE;
|
||||
const low = host ? host.n - half : b.n - half;
|
||||
const high = host ? host.n + half : b.n + half;
|
||||
return { no: b.no, row: b.row, leftMm: (b.n - low) * 1000, rightMm: (high - b.n) * 1000 };
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user