fix: [fire-shutter] 상부 커버 위치 실제 제작 형상 반영
- SVG: 커버를 전면판 립 안쪽 10mm 위치에 올려놓기 (D-20mm) - SVG: 기존 전체깊이 상판+코너리턴 제거 → 절곡 없는 평판 커버 - 3D: 구조 상판 제거, 커버 Y위치를 케이스 상단에 밀착 - 3D: 양쪽 10mm 축소, 중앙 정렬 유지
This commit is contained in:
@@ -1302,10 +1302,9 @@ function renderSbSide() {
|
||||
`;
|
||||
})()}
|
||||
|
||||
<!-- ② 상판 (전체깊이 ${D}mm — 고정) -->
|
||||
<rect x="${ox}" y="${oy}" width="${sD}" height="${vt}" fill="${pf}" stroke="${ps}" stroke-width="1"/>
|
||||
<!-- 상판 후면측 코너 리턴 (50mm) -->
|
||||
<rect x="${ox+sD-vt-f50}" y="${oy+vt}" width="${f50}" height="${vt*0.6}" fill="${ff}" stroke="${ps}" stroke-width="0.5" rx="1"/>
|
||||
<!-- ② 상부 커버 (절곡 없는 평판, ${D}-20mm, 전면판 립 안쪽 10mm) -->
|
||||
<rect x="${ox + 10*sc}" y="${oy - vt}" width="${sD - 20*sc}" height="${vt}" fill="#546e7a" stroke="#78909c" stroke-width="1.2"/>
|
||||
<text x="${ox + sD/2}" y="${oy - vt - 4}" fill="#78909c" font-size="7" font-weight="700" text-anchor="middle" font-family="Pretendard">상부 커버 (${D-20}mm)</text>
|
||||
|
||||
<!-- ③ 후면 상부 고정부 (${rTopH}mm) + 코너부 -->
|
||||
<rect x="${ox+sD-vt}" y="${oy}" width="${vt}" height="${srTopH}" fill="${pf}" stroke="${ps}" stroke-width="1"/>
|
||||
@@ -1876,9 +1875,7 @@ function addPlate(w, h, d, x, y, z, mat, eMat) {
|
||||
// Seg1: 17mm ← (Seg2 상단에서 전면 방향으로 복귀)
|
||||
addPlate(W1, pt, fpSeg[0], 0, fpSeg[1] - pt / 2, frontZ - fpSeg[2] + fpSeg[0] / 2);
|
||||
|
||||
// ── ② 상판 (전체 깊이 고정) ──
|
||||
addPlate(W1, pt, b.depth, 0, b.height - pt / 2, 0);
|
||||
addPlate(W1, retCorner, pt, 0, b.height - retCorner / 2, -b.depth / 2 + pt / 2); // 코너 리턴
|
||||
// ── ② 상부 커버는 케이스 공통으로 아래에서 렌더링 ──
|
||||
|
||||
// ── ③ 후면 상부 고정부 ──
|
||||
addPlate(W1, rTopH, pt, 0, b.height - rTopH / 2, -b.depth / 2 + pt / 2);
|
||||
@@ -1971,9 +1968,10 @@ function addScrew(sx, sy, sz, rotAxis) {
|
||||
if (backLipD > 0) addPlate(W1, pt, backLipD, 0, pt / 2, -b.depth / 2 + backLipD / 2);
|
||||
}
|
||||
|
||||
// ── 상판/덮개 (Cover — 양쪽 10mm 축소) ──
|
||||
const coverY = b.height + pt;
|
||||
addPlate(W1 - 20, pt, b.depth - 20, 0, coverY + pt / 2, 0);
|
||||
// ── 상부 커버 (절곡 없는 평판, 전면판 립 안쪽 10mm에 올라감) ──
|
||||
// 폭: W1 - 20 (양쪽 10mm 축소), 깊이: depth - 20 (양쪽 10mm 축소)
|
||||
// 중앙 정렬 → 전면에서 10mm, 후면에서 10mm 들어간 위치
|
||||
addPlate(W1 - 20, pt, b.depth - 20, 0, b.height + pt / 2, 0);
|
||||
|
||||
scene.add(meshes.case);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user