Prepare for follow-on change

This commit is contained in:
Hanno Braun 2025-03-28 19:13:03 +01:00
parent c4ef2a59a0
commit 81ed53bdb7

View File

@ -33,6 +33,8 @@ impl Window {
tri_mesh: TriMesh,
event_loop: &ActiveEventLoop,
) -> Result<Self, WindowError> {
let aabb = tri_mesh.aabb();
let window = Arc::new(
event_loop.create_window(
winit::window::Window::default_attributes()
@ -47,7 +49,6 @@ impl Window {
.await?;
let mut camera = Camera::new();
let aabb = tri_mesh.aabb();
camera.init_planes(&aabb);
Ok(Self {