mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-12 13:58:28 +00:00
Simplify
This commit is contained in:
parent
01d8b125bc
commit
c3ac8defcd
@ -8,17 +8,13 @@ use winit::{
|
|||||||
window::{Window, WindowAttributes, WindowId},
|
window::{Window, WindowAttributes, WindowId},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{geometry::TriMesh, render::Renderer};
|
||||||
geometry::TriMesh,
|
|
||||||
object::{HandleAny, Object},
|
|
||||||
render::Renderer,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub fn run(shape: HandleAny) -> anyhow::Result<()> {
|
pub fn run(tri_mesh: TriMesh) -> anyhow::Result<()> {
|
||||||
let event_loop = EventLoop::new()?;
|
let event_loop = EventLoop::new()?;
|
||||||
|
|
||||||
let mut app = App {
|
let mut app = App {
|
||||||
tri_mesh: shape.tri_mesh(),
|
tri_mesh,
|
||||||
window: None,
|
window: None,
|
||||||
renderer: None,
|
renderer: None,
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
|
use object::Object;
|
||||||
|
|
||||||
mod app;
|
mod app;
|
||||||
mod export;
|
mod export;
|
||||||
mod extra;
|
mod extra;
|
||||||
@ -15,7 +17,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
let model = model::model();
|
let model = model::model();
|
||||||
|
|
||||||
export::export(&model)?;
|
export::export(&model)?;
|
||||||
app::run(model)?;
|
app::run(model.tri_mesh())?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user