mirror of
https://github.com/hannobraun/Fornjot
synced 2025-08-08 02:06:07 +00:00
Simplify
This commit is contained in:
parent
8a88af9908
commit
40cfb0eb33
@ -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,
|
||||
};
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user