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