This commit is contained in:
Hanno Braun 2025-03-18 20:55:07 +01:00
parent 8a88af9908
commit 40cfb0eb33
2 changed files with 1 additions and 10 deletions

View File

@ -12,16 +12,13 @@ use crate::{
geometry::TriMesh,
object::{HandleAny, Object},
render::Renderer,
view::OperationView,
};
pub fn run(shape: HandleAny) -> anyhow::Result<()> {
let view = OperationView::new(shape);
let event_loop = EventLoop::new()?;
let mut app = App {
tri_mesh: view.tri_mesh(),
tri_mesh: shape.tri_mesh(),
window: None,
renderer: None,
};

View File

@ -8,12 +8,6 @@ pub struct OperationView {
operation: HandleAny,
}
impl OperationView {
pub fn new(operation: HandleAny) -> Self {
Self { operation }
}
}
impl Object for OperationView {
fn tri_mesh(&self) -> TriMesh {
self.operation.tri_mesh()