feat(plan): 형상계획 ②에서 선택한 교대만 3D와 카드에 표시

- 교대를 고르면 교각 장면·철근을 만들지 않고 선택한 교대만 그림. 교각을 고르면 교대를 숨김 (src/core/abut/visibility.ts)
- ①의 전체 보기와 ③·④는 기존 동작 유지
- 교대 선택 시 ②의 부재 목록·코핑 카드·속성 복사를 숨기고 교대 카드만 표시
- 카메라 맞춤은 보이는 객체만 포함
- 테스트 623건 통과, 타입 검사·빌드 통과. 브라우저 시각 확인은 미실시

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
ypshimandClaude Haiku 5.5 committed 2026-11-03 15:06:50 +09:00
1 parent 5af88a511e
commit 929f8eb4a2
4 files changed
+62 -3

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/**
* What the 3D view draws for the selection (2026-11-03, 형상계획 ②).
* In ② only the selected object is drawn: a selected abutment hides the piers, and a selected pier hides the abutments.
* In ① (형상 생성) the abutments are always drawn, as before; the piers follow 전체 보기 in ①, not this rule.
*/
/** True when the pier scene (and its rebar) should be built for this stage and selection. */
export function piersShown(stage: string, abutActive: string | null): boolean {
return !(stage === 'plan' && abutActive !== null);
}
/** True when the abutment with this name should be drawn. */
export function abutShown(stage: string, abutActive: string | null, name: string): boolean {
if (stage !== 'plan') return true;
return name === abutActive;
}