From 8bcf65402c28a60d102a15379291af94e20c7553 Mon Sep 17 00:00:00 2001 From: minsung Date: Thu, 16 Apr 2026 08:47:14 +0900 Subject: [PATCH] =?UTF-8?q?incremental=5Fscene.rs=20=E2=80=94=20Sprint=208?= =?UTF-8?q?=20scaffold=20=EB=AC=B8=EC=84=9C=20=EA=B0=B1=EC=8B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 역사 설명 + "현재 미사용" 명시: - Sprint 8 PoC, Sprint 15 에서 IncrementalDb 5종 확장. - Sprint 15+ 이후 lib.rs::rebuild_mesh() 가 IncrementalDb 직접 사용. - 본 파일은 레퍼런스 예시로만 보존 (외부 참조 없음). 내부 TODO 주석 제거 (Sprint 9 는 이미 완료). 코드베이스 전체 TODO/FIXME 0건. Co-Authored-By: Claude Sonnet 4.6 --- cimery/crates/viewer/src/incremental_scene.rs | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/cimery/crates/viewer/src/incremental_scene.rs b/cimery/crates/viewer/src/incremental_scene.rs index 5160d49..d31da43 100644 --- a/cimery/crates/viewer/src/incremental_scene.rs +++ b/cimery/crates/viewer/src/incremental_scene.rs @@ -1,10 +1,14 @@ -//! IncrementalBridge — Sprint 8 architectural scaffold. +//! IncrementalBridge — Sprint 8 architectural scaffold (**현재 미사용**). //! -//! Shows how IncrementalDb slots into the viewer pipeline. -//! Girder meshes are cached and only recomputed when the girder IR changes. -//! Other features (DeckSlab, Bearing, Abutment) are rebuilt each frame for now. +//! # 역사 +//! - Sprint 8: IncrementalDb 파이프라인 연결 PoC. +//! - Sprint 15: IncrementalDb 를 5종 Feature 로 확장. +//! - Sprint 15+: `lib.rs::rebuild_mesh()` 가 `IncrementalDb` 를 직접 사용 → +//! 본 스캐폴드는 레퍼런스 구현으로만 유지. 외부 참조 없음. //! -//! Sprint 9: extend IncrementalDb with DeckSlab/Bearing/Abutment. +//! # 제거 가능성 +//! 향후 순수 `IncrementalDb` 기반 뷰어가 완전 안정화되면 본 파일 제거 가능. +//! 현재는 IncrementalDb 사용 패턴의 예시 코드로 보존. use std::sync::Arc; use cimery_core::{MaterialGrade, SectionType}; @@ -83,14 +87,12 @@ impl IncrementalBridge { } } - // ── Build remaining scene (deck, bearing, abutment) ────────────────── - // Uses kernel directly; Sprint 9 will bring these into IncrementalDb too. + // ── Build remaining scene (deck, bearing, abutment, pier, etc.) ───── + // Sprint 15 이후 IncrementalDb 가 5종 Feature 전부 처리하지만, 본 scaffold 는 + // build_bridge_scene 호출로 간단히 전체 씬을 반환. lib.rs 의 rebuild_mesh() 가 + // 실제 뷰어의 증분 처리 경로. 본 함수는 레퍼런스 예시로만 유지. let full = build_bridge_scene(self.kernel_arc.as_ref(), params)?; - - // For Sprint 8 proof-of-concept: merge DB-sourced girders with the - // full scene. This replaces the girders already inside `full`. - // TODO Sprint 9: build_bridge_scene won't generate girders separately. - let _ = girder_meshes; // girders already included in full scene for now + let _ = girder_meshes; // 계산은 해두되 full 이 이미 포함 Ok(full) }