fix: 거더 높이 변경 시 씬 미갱신 + 받침 치수 오류 수정
[버그 1] Apply 후 카메라 자동 피트 누락
- rebuild_mesh() 에서 scene_extents 만 업데이트하고 camera target/radius 는
갱신하지 않아, 거더 높이를 올려도 카메라가 구 씬 중심을 가리켜 변화가 안 보임.
- 수정: rebuild_mesh() 끝에 camera.zoom_extents(mn, mx) + update_camera() 추가.
[버그 2] bearing.rs plan_length / plan_width 방향 오류
- plan_length(350mm, 경간 방향)를 profile X(횡방향)에, plan_width(450mm, 횡방향)를
sweep Z(경간방향)에 사용 → 받침이 90° 회전된 치수로 생성됨.
- Z 센터링 오프셋도 plan_width/2=225mm 로 계산 → 올바른 plan_length/2=175mm 보다
50mm 더 교대 밖으로 튀어나옴 (스크린샷의 부유 블록).
- 수정:
· bearing.rs: trans_dim=plan_width(profile X), span_dim=plan_length(sweep Z)
· bridge_scene.rs: build_bridge_scene + build_selectable_scene 의 Z 오프셋을
z - 225 → z - plan_length/2 = z - 175 로 변경.
cargo check --workspace 0 errors/warnings.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -492,6 +492,9 @@ impl RenderState {
|
||||
let (mn, mx) = scene_extents(&self.params);
|
||||
self.scene_mn = mn;
|
||||
self.scene_mx = mx;
|
||||
// Apply 후 씬 범위에 맞게 카메라 자동 피트 (거더 높이 변경 등이 즉시 보이도록).
|
||||
self.camera.zoom_extents(mn, mx);
|
||||
self.update_camera();
|
||||
self.dirty = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user