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,