From 419c45907429b5351b531aa047644c26a86d79d2 Mon Sep 17 00:00:00 2001 From: minsung Date: Tue, 14 Apr 2026 22:33:14 +0900 Subject: [PATCH] =?UTF-8?q?bridge=5Fscene:=20girder=5Fheight=20=ED=8C=8C?= =?UTF-8?q?=EB=9D=BC=EB=AF=B8=ED=84=B0=20=EB=8B=A8=EB=A9=B4=20=EA=B8=B0?= =?UTF-8?q?=ED=95=98=ED=95=99=EC=97=90=20=EC=8B=A4=EC=A0=9C=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kds_standard() 대신 SceneParams.girder_height를 PscISectionParams.total_height에 연결. 슬래브 위치와 거더 단면 높이가 이제 함께 변경됨. Co-Authored-By: Claude Opus 4.6 (1M context) --- cimery/crates/viewer/src/bridge_scene.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cimery/crates/viewer/src/bridge_scene.rs b/cimery/crates/viewer/src/bridge_scene.rs index ba0c8c5..676f7b7 100644 --- a/cimery/crates/viewer/src/bridge_scene.rs +++ b/cimery/crates/viewer/src/bridge_scene.rs @@ -80,6 +80,17 @@ pub fn build_bridge_scene(kernel: &K, p: &SceneParams) -> Result< let mut parts: Vec = Vec::new(); + // ── Section from SceneParams (girder_height 파라미터 반영) ───────────────── + let section = PscISectionParams { + total_height: girder_h as f64, // ← SceneParams에서 옴 + top_flange_width: 600.0, + top_flange_thickness: 150.0, + bottom_flange_width: 700.0, + bottom_flange_thickness: 180.0, + web_thickness: 200.0, + haunch: 50.0, + }; + // ── Girders ──────────────────────────────────────────────────────────────── for i in 0..n_girders { let x = (i as f32 - (n_girders as f32 - 1.0) * 0.5) * spacing; @@ -89,7 +100,7 @@ pub fn build_bridge_scene(kernel: &K, p: &SceneParams) -> Result< station_end: span_m, offset_from_alignment: x as f64, section_type: SectionType::PscI, - section: SectionParams::PscI(PscISectionParams::kds_standard()), + section: SectionParams::PscI(section.clone()), count: 1, spacing: 0.0, material: MaterialGrade::C50,