bridge_scene: girder_height 파라미터 단면 기하학에 실제 반영

kds_standard() 대신 SceneParams.girder_height를 PscISectionParams.total_height에 연결.
슬래브 위치와 거더 단면 높이가 이제 함께 변경됨.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
minsung
2026-04-14 22:33:14 +09:00
parent 0d21035050
commit 419c459074

View File

@@ -80,6 +80,17 @@ pub fn build_bridge_scene<K: GeomKernel>(kernel: &K, p: &SceneParams) -> Result<
let mut parts: Vec<Mesh> = Vec::new(); let mut parts: Vec<Mesh> = 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 ──────────────────────────────────────────────────────────────── // ── Girders ────────────────────────────────────────────────────────────────
for i in 0..n_girders { for i in 0..n_girders {
let x = (i as f32 - (n_girders as f32 - 1.0) * 0.5) * spacing; let x = (i as f32 - (n_girders as f32 - 1.0) * 0.5) * spacing;
@@ -89,7 +100,7 @@ pub fn build_bridge_scene<K: GeomKernel>(kernel: &K, p: &SceneParams) -> Result<
station_end: span_m, station_end: span_m,
offset_from_alignment: x as f64, offset_from_alignment: x as f64,
section_type: SectionType::PscI, section_type: SectionType::PscI,
section: SectionParams::PscI(PscISectionParams::kds_standard()), section: SectionParams::PscI(section.clone()),
count: 1, count: 1,
spacing: 0.0, spacing: 0.0,
material: MaterialGrade::C50, material: MaterialGrade::C50,